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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 D9B3DC432BE for ; Thu, 29 Jul 2021 13:40:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6A98360F42 for ; Thu, 29 Jul 2021 13:40:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6A98360F42 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 0AFAC8D0002; Thu, 29 Jul 2021 09:40:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 05EEF8D0001; Thu, 29 Jul 2021 09:40:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB8E28D0002; Thu, 29 Jul 2021 09:40:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0248.hostedemail.com [216.40.44.248]) by kanga.kvack.org (Postfix) with ESMTP id D2CF68D0001 for ; Thu, 29 Jul 2021 09:40:10 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 81CE8243A7 for ; Thu, 29 Jul 2021 13:40:10 +0000 (UTC) X-FDA: 78415734180.09.911970F Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf05.hostedemail.com (Postfix) with ESMTP id CADF3500C4E0 for ; Thu, 29 Jul 2021 13:40:08 +0000 (UTC) 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=eMa0YczQh56TUFbbWyxfwHlTTQoGvHMpB6e+MNq/9K8=; b=h8kgfYDQp0cFRzhl/YiMK30XSA lVZ+YcItMsqqARcnt2J+RhnPymwOokLRVAoDXRA0M9jE8EDxAdanXojxuRYWNQOfhE0r7Bo8IQsnb AO10KyccKR6Rg+SS3J1I5tMCmWGG+rndlxRvMEmYL+nv5K/GckQRl7/QMgy3PFZoykbA25Kv1TP1Z zubzdQj3sKFAU/4EK3HYkeNxXivYGSP2kIbz0LFp9Vd/es6yxNAIvE+aF43C4Orp4RazGboKjbux7 sjCKJcsCAPrEsbAiQRY9aYOBv2KzpHkObKUN2SwYkwwjPNC2Zx+iuqGRrU4xh5tkuvvNPM/DSarnr pCXwDj6Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m96Fa-00H7Ct-5C; Thu, 29 Jul 2021 13:39:16 +0000 Date: Thu, 29 Jul 2021 14:39:02 +0100 From: Matthew Wilcox To: Mel Gorman Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 049/138] mm/memcg: Add folio_lruvec_relock_irq() and folio_lruvec_relock_irqsave() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-50-willy@infradead.org> <20210729083644.GD3809@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729083644.GD3809@techsingularity.net> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CADF3500C4E0 Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=h8kgfYDQ; dmarc=none; spf=none (imf05.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Stat-Signature: dscrqbpfo9o4qciqzc9erxs3wi6a8eft X-HE-Tag: 1627566008-746647 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jul 29, 2021 at 09:36:44AM +0100, Mel Gorman wrote: > On Thu, Jul 15, 2021 at 04:35:35AM +0100, Matthew Wilcox (Oracle) wrote: > > These are the folio equivalents of relock_page_lruvec_irq() and > > folio_lruvec_relock_irqsave(). Also convert page_matches_lruvec() > > to folio_matches_lruvec(). > > > > Signed-off-by: Matthew Wilcox (Oracle) > > Reviewed-by: Christoph Hellwig > > When build testing what you had in your for-next branch, I got a new > warning for powerpc defconfig > > In file included from ./include/linux/mmzone.h:8, > from ./include/linux/gfp.h:6, > from ./include/linux/mm.h:10, > from mm/swap.c:17: > mm/swap.c: In function 'release_pages': > ./include/linux/spinlock.h:290:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] > 290 | _raw_spin_unlock_irqrestore(lock, flags); \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > mm/swap.c:906:16: note: 'flags' was declared here > 906 | unsigned long flags; > | ^~~~~ > > I'm fairly sure it's a false positive and the compiler just cannot figure > out that flags are only accessed when lruvec is !NULL and once lruvec is > !NULL, flags are valid Yes, I read it over carefully and I can't see a way in which this can happen. Weird that this change made the compiler unable to figure that out. Pushed out a new for-next with your patch included. Thanks!