Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp723978pxb; Wed, 3 Feb 2021 16:36:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf5hcXds9hPqlN2O3/lsZX5R8NjBLgwhc9I/JUnj4F8/3OwrW1cJcsx11YkyalUH51P5F9 X-Received: by 2002:aa7:c884:: with SMTP id p4mr5871816eds.212.1612398997372; Wed, 03 Feb 2021 16:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612398997; cv=none; d=google.com; s=arc-20160816; b=g/4hNF5xr0qwmZmcbQzJoD+X6aFpcskJBjWkiOf8e//403T4DDBlvuR2FGpSFar4CA 4AlAi4aUdGemp7nFjX5IeQgwTJf6Q+tq5SJuP42i3tmW3NMaJbcVFa9SCbG8rKPGC3xn KYDHMWhRNP69iT0xXmXXX0s/L71ov64Fqno3wmeu/AgZkvFX4PLjeXj0n4gB7ujQbDTB YjirT6Jnb/5Qkxkof22+E9VF1Wtbp1ktNND5iirzFp5mDW9cf2gv7v9y5DbeuboaxcFQ v2pkVO0AZbxDVDDDx7smU32SrYdsoJqwB0gBdr62dwoe6M1VV9E4TVML2LNjLAZikaot JlnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WtqSZ5oXvmEMoh+hrHkKFwo4xVGvGfHlBaygywAwMRc=; b=ffVWjDSTn8G/Ia602YEntOhOMWfhMNdceGeIe8eG69dIoVO1BBi0fNCiEVlpbyIRTy XdErF/VjrKrbF9TR1TsokhMCqHjvWSCHfxTN+FRAXRwXCEWmVWzyJJqXAVGHD9MMN+FK KBRKL2qlWAnl1iyrDtD6coWOUqD4kMRV+6FPhWTQxAbTUspnYzSID7Le6kjOSsv4v7o6 f4KWfgHyGlCf+y8rco6IT80vT8jyebLEle6P0IGEVAbDuT1rCpdGR5anvR5i7anCSOwn oqIkE7dLoSmEsOOw2QUGw1RQVro6VLQYCFQEUbw4hkqVQjwpWS+2yLI9mvD8QKyStBcE qfmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="bV/LOyPv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si2604510edf.244.2021.02.03.16.36.13; Wed, 03 Feb 2021 16:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="bV/LOyPv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233877AbhBDAfR (ORCPT + 99 others); Wed, 3 Feb 2021 19:35:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbhBDAfQ (ORCPT ); Wed, 3 Feb 2021 19:35:16 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1571C061573; Wed, 3 Feb 2021 16:34:35 -0800 (PST) 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=WtqSZ5oXvmEMoh+hrHkKFwo4xVGvGfHlBaygywAwMRc=; b=bV/LOyPvR3YFi448R5iR0V9ZkH Ifd2R06/CmXMjYSq2kHoj3ImbwBurDCzkOGgDGGLpKqpbYf/Vt8nkFTyC33iFq1+EX7HyGg1Wpoxq p7MMaFCswRhLvya4pvflqRE53U7fL/2Fwq4rhadyQiuWI8+NCpvJtzBSJEl+yN1D2zvtZyFYTMfWR DxDLmKBYFgVc2z0Nub49BqNHDh87smKk4EJXvJq6LCIhb6DAQYrrdEaQP/FWqHuelDDoOgRH25TDE aOTZLDFJLkpRVusKePNwtQyjW4U0ugbf3BERiv0Tc58lBXBmtT/QwLh31xMkoezEe5i4FyrFroKbN uQ+R4gPA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l7SbK-0008gX-8u; Thu, 04 Feb 2021 00:34:26 +0000 Date: Thu, 4 Feb 2021 00:34:26 +0000 From: Matthew Wilcox To: Chris Goldsworthy Cc: Andrew Morton , Alexander Viro , Minchan Kim , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RFC] mm: fs: Invalidate BH LRU during page migration Message-ID: <20210204003426.GC308988@casper.infradead.org> References: <695193a165bf538f35de84334b4da2cc3544abe0.1612248395.git.cgoldswo@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <695193a165bf538f35de84334b4da2cc3544abe0.1612248395.git.cgoldswo@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 10:55:47PM -0800, Chris Goldsworthy wrote: > @@ -1289,6 +1289,8 @@ static inline void check_irqs_on(void) > #endif > } > > +bool bh_migration_done = true; What protects this global variable? Or is there some subtle reason it doesn't need protection, in which case, please put that in a comment.