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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF444C6FD1D for ; Tue, 4 Apr 2023 22:31:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236366AbjDDWb3 (ORCPT ); Tue, 4 Apr 2023 18:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjDDWb2 (ORCPT ); Tue, 4 Apr 2023 18:31:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C3D421F; Tue, 4 Apr 2023 15:31:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F0B2D63A42; Tue, 4 Apr 2023 22:31:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99F3FC433EF; Tue, 4 Apr 2023 22:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1680647486; bh=QBuZDVS2I4Mwb+kpTY9XxhVmamKDYXJ8UVnPk8xFsYY=; h=Date:From:To:Subject:In-Reply-To:References:From; b=H5rjsr8l/GVeyxYWGUi670eRV9pzRNY0A581h1hiJIpFoBVzTH+kgLzMtLbVPIvz0 09vSM0PQfrM3W748YsHFNQU6ODcnRy1DC0tadK4/0iIn6S7MuX5nYo2P6GZ5EHspC2 OD9MYJmoctTVFJZiPgPSEfBhdnd/O8TPaXrIGIFA= Date: Tue, 4 Apr 2023 15:31:24 -0700 From: Andrew Morton To: Yosry Ahmed , Alexander Viro , "Darrick J. Wong" , Christoph Lameter , David Rientjes , Joonsoo Kim , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, "Matthew Wilcox (Oracle)" , Miaohe Lin , David Hildenbrand , Johannes Weiner , Peter Xu , NeilBrown , Shakeel Butt , Michal Hocko , Yu Zhao , Dave Chinner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v4 0/3] Ignore non-LRU-based reclaim in memcg reclaim Message-Id: <20230404153124.b0fa5074cf9fc3b9925e8000@linux-foundation.org> In-Reply-To: <20230404152816.cec6d41bfb9de4680ae8c787@linux-foundation.org> References: <20230404001353.468224-1-yosryahmed@google.com> <20230404143824.a8c57452f04929da225a17d0@linux-foundation.org> <20230404145830.b34afedb427921de2f0e2426@linux-foundation.org> <20230404152816.cec6d41bfb9de4680ae8c787@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, 4 Apr 2023 15:28:16 -0700 Andrew Morton wrote: > On Tue, 4 Apr 2023 15:00:57 -0700 Yosry Ahmed wrote: > > > ... > > > > > > > > > > Without refactoring the code that adds reclaim_state->reclaimed to > > > > scan_control->nr_reclaimed into a helper (flush_reclaim_state()), the > > > > change would need to be done in two places instead of one, and I > > > > wouldn't know where to put the huge comment. > > > > > > Well, all depends on how desirable it it that we backport. If "not > > > desirable" then leave things as-is. If at least "possibly desirable" > > > then a simple patch with the two changes and no elaborate comment will > > > suit. > > > > > > > I would rather leave the current series as-is with an elaborate > > comment. I can send a separate single patch as a backport to stable if > > this is something that we usually do (though I am not sure how to > > format such patch). > > -stable maintainers prefer to take something which has already been > accepted by Linus. > > The series could be as simple as > > simple-two-liner.patch > revert-simple-two-liner.patch > this-series-as-is.patch > > simple-two-liner.patch goes into 6.3-rcX and -stable. The other > patches into 6.4-rc1. But the key question remains: how desirable is a backport? Looking at the changelogs I'm not seeing a clear statement of the impact upon real-world users' real-world workloads. (This is a hint). So I am unable to judge. Please share your thoughts on this.