Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2473033iob; Sat, 30 Apr 2022 09:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6pZ7/RAb5Yx/Y12qaq1SoArcE9ZLo613aJw6G+ENo2zb5L7KR52643ZC/zInn3cVG4Rj7 X-Received: by 2002:a17:902:7684:b0:156:25b3:ef6b with SMTP id m4-20020a170902768400b0015625b3ef6bmr4183279pll.39.1651335920630; Sat, 30 Apr 2022 09:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651335920; cv=none; d=google.com; s=arc-20160816; b=igZ64IJj3/qcq03+xFNIcrrl4rqrzjsQMuUe/FWCCQzJQP4vZ9xaAIacztgtSPVr3g wKc+eSYsm287B2JOMOWhXww8mJrWyvRhBskf03VYjevFWEUOpkACba/Uhwiq+zVickzI 8iQQrpa7G17V9iNfAUhg2plbOW8Zh6iCNG0PmH5uUhCEPkzmXiM//CBcsKvnGPxSEzOF iWjhH2G/0QpELWUv0xmvKXjMtJBg091P04SfQv6sZbtsiDAXJHGVHs62DesPgzCpG49P v6aziK1HxFDXI7j+Ja0gC3ytvbB2ivKe4Q8d+OMSKxD0eE9LzWrD7NjSUArw8ywZ95cS z3iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=dWgiz5nrp/2MwkyGwqqFtNKzpekFyvvJn5Qx6Z2bB5A=; b=MUUKLO4cF1lLZWWl4vdFGkaxW4/tLoLd1NgkfYectp2DcU2ToPP4IYfjCWhS3aXeru VsictAUJRFH1DOBbfoUIhFYghLKl9OnClr7RbNh5DzG4BLgL88WzdrebkfmAAfs0HsKd mFs50AR6kWtgiC3posMS9xEfwysL5DwSYO2B2bIfgpZ4OqggioUGCXsrCzGYb+dXByZY f6/k1Is0djK4dEW7Jb5hKC3aNhaFhqKRvwded0LhQrYECwrdtAEGOTNqq2dgwwVNch5r 0MGdiqD4TAvOD4gi17Z6QrnrLZusAMtVRvW7GGqH4RIaoT+UjiC3lsVoqvhtQrgp1TtH Sitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=B5F2eU1t; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a056a001a0300b004fae00be7c5si9887745pfv.40.2022.04.30.09.25.04; Sat, 30 Apr 2022 09:25:20 -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=@google.com header.s=20210112 header.b=B5F2eU1t; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351409AbiD1Tbf (ORCPT + 99 others); Thu, 28 Apr 2022 15:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351401AbiD1Tbd (ORCPT ); Thu, 28 Apr 2022 15:31:33 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC9A6A88BF for ; Thu, 28 Apr 2022 12:28:17 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-d6e29fb3d7so6128375fac.7 for ; Thu, 28 Apr 2022 12:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=dWgiz5nrp/2MwkyGwqqFtNKzpekFyvvJn5Qx6Z2bB5A=; b=B5F2eU1tJqQgrHqb1lbcu8YOgDIQMfLMalLuuYSrRaNp/8Lxta47hhp3heCHUGOaWH YZaWHwQtJpQNHxEOCnwqfkrigC+85KV/NDR/De9q6GEWJiNBiZ0Zvx5jRqT47TLXM7WT 5KsutpQrT68LixlIG7TxM5/KZFgsQXnJ0ktuMhPp8liEwchuo80V+ikZY+6A1q7Dy3dt FIiosGdIaLh7UTQsy26VF5NP1q4AlFplBlJMN9i8i2n24BahkdmyU7uXHEResZpOp7qn oo5iaCdAu4bd0/pDpVGdlWuYiPvksDmBqy5L4jrl/dulXzTo9uva2DTY9DaBFlqspZS5 bzzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=dWgiz5nrp/2MwkyGwqqFtNKzpekFyvvJn5Qx6Z2bB5A=; b=EM5351ycGB0Ltw3Y7btVJijX4MatArLedT13/kqPnBQHYiaMMerNEbhSbseUhz/5TL WThkVKiPrPtQW3KJF5yCQHJN8c2vESVie39kdShWu4JwOSIZhgh9+yDikP/n0ZqJ38oe OB3+1nKIkttS4eqjDcQGVVRNRpTuXn/Pd8pAWBr43m+meX9nRf/hJnVYjU3PMySNs2Fs zJq6KscqeJrv7e8wehjNCG8ZiCVVS5nYiPWMIotpH4Z2RwDJ2OwLvKwm2m/RrNjo7tK2 vZOF5dhWzEpPvy5WjEmkVSbIYvt7+ZEz8QRKD3YStbmEn0nczJDYUfhDaJG3/PeZr27I u0dw== X-Gm-Message-State: AOAM531Ka3Q7FMmijvgYOyTkL8uPLw1ey8Y8rvpCiQ6gysXknApM+pnQ H6BRMoE86nmrx2kc9ak4MALxtqJsy3urvA== X-Received: by 2002:a05:6870:24a1:b0:e9:2282:614d with SMTP id s33-20020a05687024a100b000e92282614dmr11022021oaq.250.1651174096887; Thu, 28 Apr 2022 12:28:16 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id q4-20020a4a3004000000b0035e974ec923sm369125oof.2.2022.04.28.12.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 12:28:16 -0700 (PDT) Date: Thu, 28 Apr 2022 12:27:40 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.anvils To: Greg Kroah-Hartman cc: Hugh Dickins , stable@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Shi , "Kirill A. Shutemov" , Andrew Morton , Linus Torvalds , linux-mm@kvack.org Subject: Re: [PATCH AUTOSEL 13/14] mm/thp: ClearPageDoubleMap in first page_add_file_rmap() In-Reply-To: Message-ID: References: <20220428154222.1230793-1-gregkh@linuxfoundation.org> <20220428154222.1230793-13-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, 28 Apr 2022, Greg Kroah-Hartman wrote: > On Thu, Apr 28, 2022 at 09:51:58AM -0700, Hugh Dickins wrote: > > On Thu, 28 Apr 2022, Greg Kroah-Hartman wrote: > > > > > From: Hugh Dickins > > > > > > commit bd55b0c2d64e84a75575f548a33a3dfecc135b65 upstream. > > > > > > PageDoubleMap is maintained differently for anon and for shmem+file: the > > > shmem+file one was never cleared, because a safe place to do so could > > > not be found; so it would blight future use of the cached hugepage until > > > evicted. > > > > > > See https://lore.kernel.org/lkml/1571938066-29031-1-git-send-email-yang.shi@linux.alibaba.com/ > > > > > > But page_add_file_rmap() does provide a safe place to do so (though later > > > than one might wish): allowing testing to return to an initial state > > > without a damaging drop_caches. > > > > > > Link: https://lkml.kernel.org/r/61c5cf99-a962-9a25-597a-53ab1bd8fbc0@google.com > > > Fixes: 9a73f61bdb8a ("thp, mlock: do not mlock PTE-mapped file huge pages") > > > Signed-off-by: Hugh Dickins > > > Reviewed-by: Yang Shi > > > Cc: "Kirill A. Shutemov" > > > Signed-off-by: Andrew Morton > > > Signed-off-by: Linus Torvalds > > > Signed-off-by: Greg Kroah-Hartman > > > > NAK. > > > > I thought we had a long-standing agreement that AUTOSEL does not try > > to add patches from akpm's tree which had not been marked for stable. > > True, this was my attempt at saying "hey these all look like they should > go to stable trees, why not?" Okay, it seems I should have read "AUTOSEL" as "Hey, GregKH here, these all look like they should go to stable trees, why not?", which would have drawn a friendlier response. The answer is that I considered stable at the time, and akpm did too, and none of my three (I've not looked through the other 11) are serious enough to be needed in stable; and I'm cautious about backports, because I know that the tree they went on top of differs thereabouts from 5.17. Of course I think the patches in 5.18-rc are good, and yes, they're things I've thought worthwhile enough for me personally to port forward over several releases until I had time to send in. But that doesn't make them safe stable candidates, without someone to verify and vouch for the results in this or that tree - I run on a much slower clock than you and most around here, I do not have time for that at present (and would prefer not even to be having this conversation). But I'm happily overruled if any mm guys think they are worth that extra effort, and will verify and vouch for them. > > > I've chosen to answer to this patch of my 3 in your 14 AUTOSELs, > > because this one is just an improvement, not at all a bugfix needed > > for stable (maybe AUTOSEL noticed "racy" or "safely" in the comments, > > and misunderstood). The "Fixes" was intended to help any humans who > > wanted to backport into their trees. > > This all was off of the Fixes: tag. Again, if these commits fix > something why are they not for stable? I'm a human asking to backport > these into the stable trees based on that :) Your humanity is not in doubt :) But I think we've gone over this too many times - each year? There's a "Fixes:" tag and "Cc: stable" tag, and in akpm's tree we prefer to be able to specify "Fixes:" to help each other, without that automatically implying "Cc: stable". Andrew goes to considerable trouble to determine when "Cc: stable" is appropriate. > > > I do recall that this 13/14, and 14/14, are mods to mm/rmap.c > > which followed other (mm/munlock) mods to mm/rmap.c in 5.18-rc1, > > which affected the out path of the function involved, and somehow > > made 14/14 a little cleaner. I'm sorry, but I just don't rate it > > worth my time at the moment, to verify whether 14/14 happens to > > have ended up as a correct patch or not. > > > > And nobody can verify them without these AUTOSELs saying to which > > tree they are targeted - 5.17 I suppose. > > 5.17 to start with, older ones based on where the Fixes: tags went to. > > So do you really want me to drop these? I will but why are you adding > fixes: tags if you don't want people to take them? Yes, please drop them - thanks. As to the other 11: I hope authors will speak up one way or the other, but I'll drop out now. Hugh