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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4858FC433E0 for ; Thu, 4 Feb 2021 00:35:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0415A64F5C for ; Thu, 4 Feb 2021 00:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233859AbhBDAfR (ORCPT ); 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-fsdevel@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.