Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp895952iob; Wed, 4 May 2022 10:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdSIDzszgqQf4UqqABWDffmZw1ki7J48ZgWLAaxy50rW5HTkKbNMLgrKHPfeh+Uwsv6vHv X-Received: by 2002:a17:907:60d4:b0:6e8:7121:3c80 with SMTP id hv20-20020a17090760d400b006e871213c80mr21477213ejc.352.1651684086668; Wed, 04 May 2022 10:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651684086; cv=none; d=google.com; s=arc-20160816; b=gGMjf/P26ws8n82hP6z192o+2wINkOpeK69VpS3GmHVj8ILc19b+mt+0t7/Htvj6kv ri2VWbnxT7sQ90k9tbo3Lnh7ZZOVHn4xEGwXqQ4aHj7/d6+/NgO55YWZhl2Do8GNRmrn 2Ma6oGIMy7cjdahc+D0PqAn1vxg3O27Cjpo3AZo9wZmEnp49RGGdji4WlhG7h/MneNdc JP7aICy3nwduHPhO2cpqW1GAuJWupzTAPakZyiGGpLwJRxpqGGHHGXnCas7EsPGsfnGP 9IA6fkioHraG7v79uqBgvTAlyenInOe6exNJ3Q/pY8n7QMrl8G9HI+Rgq4T5Q5sY2gfP RLBA== 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:sender:dkim-signature; bh=ss87FSqUni7rDXSoxiu7XmQ/S9n/UK2R/Ew6b8zs5Do=; b=0wu3pqGYhdBVRPLg8LjboNrFdb7pzd74Qip6YVmQbdbP3e5CtjvEokRDluONzXFel6 5rFknsC2GHZr4ph1aVmXXxxUXODqaDICdJyzfPy4/D2cWcqeW8Lm2fpPSVZePm66mgPd buefdxZnrQoH9ED/YLxn/ibEFTwrSd8uFfr1Qv5KyS4mQ98rRL98QYe2W/KlXFxAjnzX oOiEUwVsdqx3vKissq2kscDg/9g3OgtdFoc6bebqw6Hkhl4R22sL8283H0e9W6BlncIA pQ7oT5VKcTOKVXIXKE9V0N1blPzh8TExoYPVy0916WQZ1ARF+DAfBLrn2a8fwXeO4MuD HFpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YyZvqaN8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho42-20020a1709070eaa00b006f46e6128a7si7084089ejc.981.2022.05.04.10.07.42; Wed, 04 May 2022 10:08:06 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=YyZvqaN8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245456AbiEDEeS (ORCPT + 99 others); Wed, 4 May 2022 00:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232280AbiEDEeQ (ORCPT ); Wed, 4 May 2022 00:34:16 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7D92717C for ; Tue, 3 May 2022 21:30:41 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id iq2-20020a17090afb4200b001d93cf33ae9so4158554pjb.5 for ; Tue, 03 May 2022 21:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ss87FSqUni7rDXSoxiu7XmQ/S9n/UK2R/Ew6b8zs5Do=; b=YyZvqaN8apSl08J8dH8FGbeUv8c4HJ/nHqUrqhpiuVq5HEEeW8jpk5PgiodHWz5sSu BjCUdhXJhsgk9WpSJBE6W3Rh5ls7C7zkKCJkrUpBtJvipm0D3pZo2XHY0C3Foa0aVnN5 ExH2IgR6gIiHgEruLe4RLzYalm9hE3xbsGe/jFxy+KQaX4xE5+foGVK460WGikbYa6Cq 2+wqYq8EChJlZMgC+nGcp1Y8As8trJTcsv1bTh2i5RBYXIcBUnqTdhEhQVZqPxM8dASr oBAD6HGp3PW9Cpbo6seeOXqtst70QXBizSICfi71ZZ3f0zQmjQKkLRl5oJcNZe4lWNvK agWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=ss87FSqUni7rDXSoxiu7XmQ/S9n/UK2R/Ew6b8zs5Do=; b=Vf7siD3Tee60nLDSCTvn35+0Kz17uHifhBjdZswpMjoRHsqMLU3C59D6iwrUjm50f7 usMVFLq5PuRU/NwmoVL7XJxQ2vafzPBcwuVemXpRHzxQm+Vea2A3U1gUt96a8ffdTqzL YVa6E5KsmQRyaUp0YCMGqs/ebRAhgmCF4jr0RJDj4MG0Qziqr7JFlKsUHobnk59TU8cm PQIdP0aQ1lal45GB78nQ+18M+oTZqiM74D/sOwO5Sur0zHRikh736se+/swm3vOcx6ks ImeNb9x17IeknGfRLNhWrThICWVEa9cOgjeiLWtQj2Xii5T9Wn+c8jnz9XvfKFAWu/Bi YnHQ== X-Gm-Message-State: AOAM5305/69NW8geifCoczytX5O3vleJVJuxCGkSV2xZ1R1qyzcgZXFF shQ+q2ioG7JszFWBleThtcY= X-Received: by 2002:a17:902:c78b:b0:15c:e5dc:4f63 with SMTP id w11-20020a170902c78b00b0015ce5dc4f63mr20013137pla.90.1651638641034; Tue, 03 May 2022 21:30:41 -0700 (PDT) Received: from google.com ([2620:15c:211:201:8998:54e:9def:1e7c]) by smtp.gmail.com with ESMTPSA id w10-20020a170902d3ca00b0015e8d4eb298sm7153537plb.226.2022.05.03.21.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 21:30:40 -0700 (PDT) Sender: Minchan Kim Date: Tue, 3 May 2022 21:30:38 -0700 From: Minchan Kim To: Matthew Wilcox 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=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,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 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.