Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4693014iob; Sun, 8 May 2022 22:13:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2rTgxrPrc36ZDYZq4y9Z6etgdcBkAbXANu7rrKYZwA9ZhY0w08sQg0dynDiaP4XgttCtW X-Received: by 2002:a05:6a00:1488:b0:510:4e64:fb80 with SMTP id v8-20020a056a00148800b005104e64fb80mr14615103pfu.58.1652073217016; Sun, 08 May 2022 22:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652073217; cv=none; d=google.com; s=arc-20160816; b=ue1UxfmurHdkI5EAqjhdjl6UjWPRNuGmoujRQOaW7iLcadNNE7jM0PE0zaNuGMjgth 3XrIsBR1pFnypoo/Rsgsws02G09O55Bh0d7nsMOn1xFKjS02y1zAA+7rboYyAkhVXVJt XIFq+IN56SlTWFs52ED6sXe8MeKADcEGJ8CXpNiEavAP7tiRRHTZ+b1UKTziBqGM0krY Ds3rSHL7tIwv3ugEzICeW6Nl64SLdnU5jmOI5t+HKTneo/9u51mGH+A6fA0CEbqgJf3C S91R14QAT7vcYnENUg+Rhhs++GFTEcE/vFBK1Octo8EzkjF2OQ4BoP8RpvOgjN0vjuFP mdTw== 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=mLg1H11s7vwLj6tClFSIgTh3DOgfbrxxwGziAtkuLp4=; b=alaY8c+r9Fc7x8HhEWnjzNIgmsxRVpKgjm9yQa6m+upBe540t+vT7o4uO4XkZS/BAa +SCxrcFwtVBHTUxN9QI3Mxtmq75lccpeQDlDr7oxzn5hEc5cjEeWZnxF5MMPyBdET0Sr sya4xwKlX6RtYB1XK2qogZnigMfacIWswfXyKt2zEaju2BhWngqbEZI4BVeNta9nE1mG y6ww0QY+wctumAyuzWYFi5z2IQjFrI1bkzPObOqEfkNkHLFoY16zfOO7DBIscQlv5Q6Y Z3SAMNCPgN9voc9JV//vPRO2oL8R0rmtrgBG/HRC827aBfcA6QehMB6Hv1fCOdHkG/Q6 N5XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eV214LHb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id rm12-20020a17090b3ecc00b001d2d69d3f46si13792665pjb.151.2022.05.08.22.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:13:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eV214LHb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5229278936; Sun, 8 May 2022 22:10:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344843AbiEDGNV (ORCPT + 99 others); Wed, 4 May 2022 02:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233641AbiEDGNU (ORCPT ); Wed, 4 May 2022 02:13:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14541EC4C for ; Tue, 3 May 2022 23:09:45 -0700 (PDT) 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=mLg1H11s7vwLj6tClFSIgTh3DOgfbrxxwGziAtkuLp4=; b=eV214LHb/UZi0ZSrWlQMcNMG5g DpH8mozghTyqroVmN4m8MymM9ejFV7R7x1XGd2y2XZJo3SfvtSUk3uEK6blqWeZru7CfRlYp0ez60 yzagl3xaydH9tu6MXX5z3UgbRnoh+xQSHer9aTuu3hlAslwES1f17TClD9b91jMbZeIA0XqhByXEb 6nMQ9lqfQj4d85bDzJGPWQzhOH3mldD8Z91WJoSOyRDZ9QP8SVeSkSyRc8qCk3WlX19Zu5vfuedcL dZqvWdZzZa91CLaP5gE2DAPaKVWXCh0qta43j9P6e8qu5i0isgyKXisYBB1CndthS8VV7RRLlGcBI MJcnUMTQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nm8Cf-00GHkz-9X; Wed, 04 May 2022 06:09:37 +0000 Date: Wed, 4 May 2022 07:09:37 +0100 From: Matthew Wilcox To: Minchan Kim Cc: Andrew Morton , LKML , linux-mm , Suren Baghdasaryan , Michal Hocko , John Dias , Tim Murray Subject: Re: [PATCH] mm: don't be stuck to rmap lock on reclaim path Message-ID: References: <20220503170341.1413961-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, May 03, 2022 at 09:30:38PM -0700, Minchan Kim wrote: > On Wed, May 04, 2022 at 04:32:13AM +0100, Matthew Wilcox wrote: > > On Tue, May 03, 2022 at 10:03:41AM -0700, Minchan Kim wrote: > > > -void rmap_walk(struct folio *folio, const struct rmap_walk_control *rwc); > > > -void rmap_walk_locked(struct folio *folio, const struct rmap_walk_control *rwc); > > > +void rmap_walk(struct folio *folio, struct rmap_walk_control *rwc); > > > +void rmap_walk_locked(struct folio *folio, struct rmap_walk_control *rwc); > > > > I see the build bot already beat me to pointing out why this is wrong, > > but do you not look at git log to figure out why code was changed to be > > the way it is now, before you change it back? > > This patch added a new field as out param like compact_control so > the rmap_walk_control is not immutable. ... but we have a user which treats it as if it is.