From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E708C43217 for ; Mon, 7 Nov 2022 09:12:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4EBAB6B0071; Mon, 7 Nov 2022 04:12:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C3206B0072; Mon, 7 Nov 2022 04:12:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B2046B0073; Mon, 7 Nov 2022 04:12:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2C9C96B0071 for ; Mon, 7 Nov 2022 04:12:56 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E6F12A0D9E for ; Mon, 7 Nov 2022 09:12:55 +0000 (UTC) X-FDA: 80106081510.27.A927F86 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf09.hostedemail.com (Postfix) with ESMTP id 7D04A14000A for ; Mon, 7 Nov 2022 09:12:52 +0000 (UTC) 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> ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mjJXpuwX; spf=none (imf09.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667812375; a=rsa-sha256; cv=none; b=tsLjtXqfDDFL0a6YsVUj1z2B/zlCuiv71XlkRyn5N9fHY33/vrsUDCnYCbf+9xUmZUjH02 yeOd7Pl0/gtPRr1CUTLavKBDZgcOPxLEEXhWr/9hO/RY98waaJOBOQh0+hZkG8UjbHPiMd 1Om0KdfswWVgqG5OM25Qkb1dntsRiM4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667812375; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=TgT6Bm94xIkPz5pM0AMFJI2S+82t6ITBnJ8g+cjlZvo=; b=0/oE0maO98TWgw5a/0nbMFQCRDch5ZIxDAsyAnocS0tqlZyJrMPCM47G0M+FzOunWdAzyl Gq6RBGwPSQ/SVfEuzWMENbuPLdjxTr+P9yc7MoiIPX4uAemaKU5HTuVDAK9LXun3HD4T8L iUxE/7gRnjisScCnwZ1bBy5VAqxhUGM= X-Stat-Signature: 66ptn3mp7kgbukze4m1auy1xgf1g6z4y X-Rspamd-Queue-Id: 7D04A14000A Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mjJXpuwX; spf=none (imf09.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1667812372-988568 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 :-(