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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 39FF3C433DF for ; Fri, 19 Jun 2020 13:22:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1481A20DD4 for ; Fri, 19 Jun 2020 13:22:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="mT3EQLiA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728430AbgFSNWD (ORCPT ); Fri, 19 Jun 2020 09:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728606AbgFSNWD (ORCPT ); Fri, 19 Jun 2020 09:22:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE47C06174E; Fri, 19 Jun 2020 06:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=Zm98zvF5j8AfZqZkius+G07hdqS+tdgYDCOmBq/2Xao=; b=mT3EQLiA63auy9vEBqzzaf7fpB F5AqegH9Sbtx1Th0BsEa/weK0kjUDVexFMQ+eUGtmppiyGg0FFB3d0bgxMr1KJju4ANyYjZTkC5L9 d/Fp3Cz+M4voBpJpu5/T+6+4vRuVX9qOvjZmy5rOOId1LTdA1GdmpuPsNVg3ROhibDKMUtaCIAPRc iSwEAAgD17rl03TsO8aME4fVpCFbXN8F69xsZxHmVDfomaoXoKEAQrXc6F8IlnwqXJi2q9bvg0p+f mbICSv+7DK9sdk9IP2ukie/PVgj85McV6RrCyL54+mvx8UouolLhJrfBLmFUdJ5m+2riduXZnDmYX v8hdE6Kw==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmGxv-0001bd-Dp; Fri, 19 Jun 2020 13:21:55 +0000 Date: Fri, 19 Jun 2020 06:21:55 -0700 From: Christoph Hellwig To: Waiman Long Cc: "Darrick J. Wong" , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Chinner , Qian Cai , Eric Sandeen , Andrew Morton Subject: Re: [PATCH v2 2/2] xfs: Fix false positive lockdep warning with sb_internal & fs_reclaim Message-ID: <20200619132155.GA27677@infradead.org> References: <20200617175310.20912-1-longman@redhat.com> <20200617175310.20912-3-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617175310.20912-3-longman@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org I find it really confusing that we record this in current->flags. per-thread state makes total sense for not dipping into fs reclaim. But for annotating something related to memory allocation passing flags seems a lot more descriptive to me, as it is about particular locks.