From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71A1EC433EF for ; Fri, 3 Sep 2021 01:44:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4DE8C6108E for ; Fri, 3 Sep 2021 01:44:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347028AbhICBpA (ORCPT ); Thu, 2 Sep 2021 21:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbhICBo6 (ORCPT ); Thu, 2 Sep 2021 21:44:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FB33C061575 for ; Thu, 2 Sep 2021 18:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=thtGYqZ0DakkE8JK0/MwinDZlqRB0FWqqYnSaIBuUWI=; b=Af8YOyBQTqHQdOVI4oDU63HHVB Tou7+9iVzE2V4PwtBA4/uNfouZvI6LpHKIJeBXnk/N+FLyfI0oBxSKFPJNBmp7+2ozg/trGlTlqaI 9Mza0WWqFpxZ0tbrLPdCNzqAPMxmLXs1RecLno1pyX89i6ep1Y/pwDrjMTvEtx1KEbJzDwmLIj/IF UcXG2fUkyBFzLXulLJflnytQPRWD5VNX4lePXMmwVP+rWDpOdwr6HgzrGcFvKnjQKul0u1Gi3MeZb xOpqMx5tglBsTY/meHMtUJnsB6aTPKnjMAUPESxFEDhpjiL/mlFjMGg41SH0mNWUhYfmg0PPWo4cH 3/QR15+g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLyE0-0042jW-BY; Fri, 03 Sep 2021 01:43:00 +0000 Date: Fri, 3 Sep 2021 02:42:36 +0100 From: Matthew Wilcox To: Liam Howlett Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Steven Rostedt , Michel Lespinasse , Vlastimil Babka Subject: Re: [PATCH] mmap_lock: Change trace and locking order Message-ID: References: <20210903013521.1802774-1-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903013521.1802774-1-Liam.Howlett@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 01:35:31AM +0000, Liam Howlett wrote: > Print to the trace log before releasing the lock to avoid racing with > other trace log printers of the same lock type. Aren't you missing mmap_read_unlock_non_owner()?