Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1476195rwb; Mon, 7 Nov 2022 01:59:44 -0800 (PST) X-Google-Smtp-Source: AMsMyM5gyV2RUEfCkgyuz63HaU4eJaczBDmNTFV4mWioRjr4iymbAfM8+DjV16bWW316KAitE4Eu X-Received: by 2002:aa7:942d:0:b0:56c:6e8c:6ff6 with SMTP id y13-20020aa7942d000000b0056c6e8c6ff6mr49638121pfo.67.1667815184196; Mon, 07 Nov 2022 01:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667815184; cv=none; d=google.com; s=arc-20160816; b=gx6T8mSbJqxZCntjflKlIKDx0gHR91VFCA5jOF3s7pgxATSficR76AktwXEyka4Rgb r8l2cjjpdZHrkEr6rPK3uCy9plcCWCLlSqctuIyWUlZ+6j+hfrGnMsYkwOyFz8JuRJdT rl3n1jh9tL+mSetbfMP2mRCLaSsv+B4YbGO2DWV+5P0DbY6pylwI4DViQXCxB7oFh5PE +XL0oR7QlcFC7NzqPjJwcq7/MSNJrvq+gGQjWtBI+Q9x6cVrlCcDJZ1If5a0cO9KXH5W 8ptdiNh38mZEKf4g6gAyG0qfFggk9SaT+diyFN66wbSFtcyj7bNWMycBFn3PS3NUm+pG d16g== 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=TgT6Bm94xIkPz5pM0AMFJI2S+82t6ITBnJ8g+cjlZvo=; b=C/VYhgz21YAbDNHl46a/TQz1icjMgGOEZLWOlfUyt59EIdy1nPXxLf5pKF3nlKI7jD NlqV2QDXF+lAU5mu4/ByP6lFQMuYfN7jelUOPS5lc1YV3laBOjCD/O//sC7zRjlDIKPe Yw/5s4WJXWKpJGFnB1VNg2KA1FORNEkADHa+jIp11+UdBew2vUr/Mj6QHzRyFI0z2md2 MBS3nh3XuWwnr9fYNsDkAiQyJZzftmiQpHTu35ai1aPCzcExQd0TyOUwQSv/4Bgaz4jn MZl43yt1IuYIoU+WY2Fi2JjCd4DOArYK+UGhJc5HQHWr3ZYFq/ZG+8mYjiGdpK4wJMG5 uwNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mjJXpuwX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j125-20020a625583000000b005632d18cd91si8492358pfb.263.2022.11.07.01.59.31; Mon, 07 Nov 2022 01:59:44 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=mjJXpuwX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbiKGJNT (ORCPT + 95 others); Mon, 7 Nov 2022 04:13:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbiKGJNI (ORCPT ); Mon, 7 Nov 2022 04:13:08 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C73B167EA; Mon, 7 Nov 2022 01:13:04 -0800 (PST) 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=TgT6Bm94xIkPz5pM0AMFJI2S+82t6ITBnJ8g+cjlZvo=; b=mjJXpuwX59z8cofVj+vGaf4g8O VUQ0UnZxsjLE0Db1Xz3wYD7Cc48MdqZBGF2Clo5+dqhpX6DX06wYZR6ulXJ49qgGqU3JZmkqZQYDd qQkKDFMYho2wLPMBKPP0Y1rckdxdm7owPO+KjMkL8znHBb1tSBpWwgPtrw8LD3Y+eDV5yXrDfDYPU Ufo/4v99LUWKrjwUOpKe8b5SmrRZ0byPSR5uKs/a9WuVRCbIH5haTf/e6MHt0biacG8zTy/1z13wO l5bwrLUcyBhB/VP5x8RJ/89vO2AMj7ANjsm5M5xYnVyOe/lBWh4RkD662/6ronS6+blm7VjXVzhT8 Sclm3FtA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oryB5-009FLW-3D; Mon, 07 Nov 2022 09:12:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9CAD330026A; Mon, 7 Nov 2022 10:12:10 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 84A6F200F8FC4; Mon, 7 Nov 2022 10:12:07 +0100 (CET) Date: Mon, 7 Nov 2022 10:12:07 +0100 From: Peter Zijlstra To: Hugh Dickins Cc: Linus Torvalds , Johannes Weiner , Stephen Rothwell , Alexander Gordeev , Will Deacon , Aneesh Kumar , Nick Piggin , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Nadav Amit , Jann Horn , John Hubbard , X86 ML , Matthew Wilcox , Andrew Morton , kernel list , Linux-MM , Andrea Arcangeli , "Kirill A . Shutemov" , Joerg Roedel , Uros Bizjak , Alistair Popple , linux-arch Subject: Re: mm: delay rmap removal until after TLB flush Message-ID: References: <8a1e97c9-bd5-7473-6da8-2aa75198fbe8@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a1e97c9-bd5-7473-6da8-2aa75198fbe8@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Hi Hugh! On Sun, Nov 06, 2022 at 01:06:19PM -0800, Hugh Dickins wrote: > See folio_lock_anon_vma_read(): folio_mapped() plays a key role in > establishing the continued validity of an anon_vma. See comments > above folio_get_anon_vma(), some by me but most by PeterZ IIRC. Ohhh, you're quite right. Unfortunately I seem to have completely forgotten about that :-(