Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2658958iob; Sat, 30 Apr 2022 15:27:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxePBzwlZFN4yP/Au4nzQKz4vT2PvNnsjq+E43tE4/5Lj5wUEDec2OXO+ric4Rt5jtcX/Hz X-Received: by 2002:a17:902:d4cc:b0:15d:5246:e4de with SMTP id o12-20020a170902d4cc00b0015d5246e4demr5286035plg.68.1651357672237; Sat, 30 Apr 2022 15:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651357672; cv=none; d=google.com; s=arc-20160816; b=G1rrnIz18ay+CXherFUZezb/Ik+/7OPKl4qfurYp/JW4MSyepLS6Ppc3l4Qlsfl8Nx JwLxwvRm72JFjGzjabHt3i0h2AjhFI1DF21YFh4gfL6S+oMHcugM90rTMedy9XuaPJ2n BjrDjkYm212qYLMZmLy09LgE8GvtDqRj7KsWlpLGLkLjTfGeUSpWKshiYnhZNlklPlvO bEy5+NsoCmeF3vEoRqNO0sHGEQAL/Jf5S7YbKkvkr6le6dnPkPQ6N2aBi0jUnN4aVg6X hkvEJSb0JJShKFWsjLBASHFbaIri8enm0ZGSz2comA4NhWg+W9umFKHbiCd68JbALzAV qa8w== 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=czoTUAYTSxZzvqGE7Oe2yQy2A8LLKsWV3L+sPbIX6RU=; b=RVxvkxIhDDyUSgUFfKkd/ZC1W20JbpmKvP2cHo5O5vd79yKq5PUARc3KXhKySLlbss Yk83aJPxuerUqVoRd3ExMGqXU7uRebg8WM2GeB+gdWy5WBSHHfUL4MkyBOKTYMsYSeIc WU9b+iw04neYNANS6z8JoT4feCy/lc81K5cdt1MIcNlVrTLKl0SZ2/Spu9FbqJNJRndV Yfjoy/P0K3eaRz+syFgPoMgAFXzgOEki20mMJzEXoymcypkDXv0Lgk+k3NRGRo+CEdYB HrrfsarbRQEkgBRUkFFXwAMVbM0alp3WibzoSQW3M1PykK3WA5DI4JncyjJgImZkSj7N v0RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ygg6MGVn; 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 b11-20020a170903228b00b00158ccd9ed4csi10536338plh.224.2022.04.30.15.27.25; Sat, 30 Apr 2022 15:27:52 -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=@kernel.org header.s=k20201202 header.b=Ygg6MGVn; 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 S1379623AbiD3Aa2 (ORCPT + 99 others); Fri, 29 Apr 2022 20:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235155AbiD3Aa0 (ORCPT ); Fri, 29 Apr 2022 20:30:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0064ED0808; Fri, 29 Apr 2022 17:27:06 -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 ams.source.kernel.org (Postfix) with ESMTPS id AAB07B83800; Sat, 30 Apr 2022 00:27:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38725C385A4; Sat, 30 Apr 2022 00:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651278424; bh=ZY6lCWFeGbK7gENJJ1vDCLA1WWWMx/zm0VeDflagIBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ygg6MGVn6QSNdq7kp3gNjqQmB+hnOtu40Z295SdnBj8b75mTmT4cr+r2YS65ZT3rd G85xL5kf/tgTwTbGOK0yKXWvvfL626D4+JyJFG7BlhxefUxwPXnBdQqjiU6bdnQhlv xrEKvbOn7h4TBnueU2Y8KeCWjl9AcDNX+nPEDnoyEoG3fC9fNzU1YS3hBnWkpwdzG7 JwPTSfNJhd9BQFcbkA7+jW6xCz/c/7FhJx5ucds7cClGkvIb2dikZzB4mbSmSuO1+g izzp+WcjjDqOyDFr4wkxBW3ptbeejChEpyT/Cr33bUHUXLUwmbNqY2wZOSW9SSmnBO nnq9v9yYi4zTQ== Date: Fri, 29 Apr 2022 20:27:02 -0400 From: Sasha Levin To: Hugh Dickins Cc: Greg Kroah-Hartman , 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() 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; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, Apr 28, 2022 at 12:27:40PM -0700, Hugh Dickins wrote: >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. I guess it was only between myself and mm/ :p >> 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. FRIENDLYGREGBOT :) >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. What's the extra effort here? We're seeing so many cases where we see issues with LTS kernels and we end up spending so much time triaging and diagnosing them only to find out that they've already been fixed. Honesly, having them in -stable seems like *less* effort to me. -- Thanks, Sasha