Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1357709pxm; Thu, 3 Mar 2022 16:07:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+T3KTlmB2ZWu6z8uYoAOJIH17GuW6p/3kHy/iEbDJaIyS7FxqvEGrnVchKTMIjHzrkBWA X-Received: by 2002:a17:90a:f02:b0:1bd:ab6:42ec with SMTP id 2-20020a17090a0f0200b001bd0ab642ecmr7902220pjy.18.1646352448461; Thu, 03 Mar 2022 16:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646352448; cv=none; d=google.com; s=arc-20160816; b=qoEtUwHAsd7PDvHgXgIlAThB/pEf3gA62PSa+ZTGyML28o8laQTGV5nxdk/PMNfH2t YK3tsUViHqtuIwNGiLI4pPk/bIY9mFpfp2mtt7lqedt6imFjhfAdhyAyj7vq/677zrQG VZgudzyLl50c292NAvPHbdSSSzHh6QBfbQKq3lEp4fCdjbLjSYj58aJcnqOtBzCyYiPo XW2Sj++6UVcac/2T5E4HUv0HcbybpjAaxPjZhbh3N8EguJanSI9cjc1Zl2GDKR0/x86h 7VJgKUJt9ovoxDp2vmmhjrCQCSA7EFXfO1FEWTZ0VLvIHe7Pa1ACzHTGpwURkmeHQv5d e3Zg== 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=52IPoiZlULRFsRfp7a+MOcHPPK5OVaKArRJeKTkzhvo=; b=d/STzIt6erVvXZyUXsUC+VLxZb3C/TTuhi8nekM1iAbtoqtJuffBIsdOpiO0NowGRK yYM7yTZ4gmfYkm/NVR1Fzzbi9aqWODubakwE80KR5/fmQfMuTNZz8oN696hzdAySdIQI j7BoaXNWTCPiT6EP1+pgsFWWGb17VNLeDNGdo4pga+W53F9LsFe9ipmy7qP2BZZuOUTd VqUMI2MnxJ/EaglI+hm4BPSfVc0usgJoZftlUQuuaHRa8N2QBu9Xf9t/J7mylzqJfgvS z5xDlLcCPxugwecSmeaQNzztMXriROfeLiZw0iPa+u+Y0CsSKBFaJ1F5FZRLAMt6elNZ sikA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KRjqs5qB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a17090311c300b00151870607c1si3811319plh.472.2022.03.03.16.07.12; Thu, 03 Mar 2022 16:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KRjqs5qB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236593AbiCCWma (ORCPT + 99 others); Thu, 3 Mar 2022 17:42:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231782AbiCCWm3 (ORCPT ); Thu, 3 Mar 2022 17:42:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 539751662FF for ; Thu, 3 Mar 2022 14:41:43 -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=52IPoiZlULRFsRfp7a+MOcHPPK5OVaKArRJeKTkzhvo=; b=KRjqs5qByXCCtDLJuVi6CXCPEi Lpe0SgN11Y9rnKZhPft2uhbuREDPHnG+3PYR9R9faV5PJG2TCg9lOpWNOZHWAzJaT1lfLmOojK3xL 1P00Mu4GJnFpxvLRLiGHRJg1rmHpX3zEgakW1IWBZbdAnXP77Kp6GEI0XJGNfYbprut/I6tYMccVY R7AiMS81A4YWCTxb2MK1mCg6sLoiWcWzmYpvJiv+sagrOqn0TYMAIW8dpAC7qCWSThbsurU/ahF3P nSvw2sANT59tduACOlNAgWIVloDzRiiJPl2oDSOmqF6/3QLpFKZY5Epf3+UtBH2DVIFL2M4/PhNyt gHkqkyrw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPu8g-00C3LQ-Kt; Thu, 03 Mar 2022 22:41:38 +0000 Date: Thu, 3 Mar 2022 22:41:38 +0000 From: Matthew Wilcox To: Hugh Dickins Cc: David Hildenbrand , Andrew Morton , Nicholas Piggin , Yu Zhao , Yang Shi , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH mmotm] mm: delete __ClearPageWaiters() Message-ID: References: <351df0af-78f2-c20-2a6d-e5f978e5ca1@google.com> <9dda55d5-eafa-3177-2a4c-32ccb7e146e3@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9dda55d5-eafa-3177-2a4c-32ccb7e146e3@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 03, 2022 at 02:28:46PM -0800, Hugh Dickins wrote: > On Thu, 3 Mar 2022, David Hildenbrand wrote: > > On 03.03.22 02:56, Hugh Dickins wrote: > > > The PG_waiters bit is not included in PAGE_FLAGS_CHECK_AT_FREE, and > > > vmscan.c's free_unref_page_list() callers rely on that not to generate > > > bad_page() alerts. So __page_cache_release() and release_pages() (and > > > the presumably copy-and-pasted put_zone_device_private_or_public_page()) > > Hah, I'm showing my age there, or the patch's age: it's been rebranded > frequently since then, with linux-next calling it free_zone_device_page(), > as you kindly point out. How long before it's free_zone_device_folio()? Probably not a serious question, but within the next year, I expect. I have a prototype patch to do the entire page freeing path, but it wasn't a priority for this merge window.