Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2397641pxy; Sun, 2 May 2021 21:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFYyp4VYvrw8liS8l78G7RXkMMmw4lvAtpuTCUmVJJGe0xPwqc42SktLhS+0TuuPbbZTWj X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr17908361edc.117.1620016813106; Sun, 02 May 2021 21:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620016813; cv=none; d=google.com; s=arc-20160816; b=MNfdqm4SNdzs7nxHmHb0puY9ANC3XumSl5OiM4FXmHunXmH4M8eqedSaFEKXhg3l6J ALlQL3jnwrMHvvNmYljRgRoHzy4LT4AgvUKhBljeNhCrFfNBZSbWyTw8HdZu8Qnb1d/5 CtsJ5SW3vXca25kSq7sJc7WiUjpNPslFvMXgKHzDxfRLlobskliiOPxG5LBzGTi7Wuw2 Pr7QBEh46Q5fISn8799pwsnOtQPSKraQgXcwx2ew8Q1I8aUshcFuxAWPRmv+tQbyz+r5 vB8YCy6CVvcaiaWEGr1HbHQoRul1jPw4q9nIgQZ+vSmLn+wnsDBi3e5g7nsgE7+uSFda Vx7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=IVSN4rXFsAqhRrOBaOG8oTadR0XsOpnayasis5eGn9U=; b=c2PQ5ZO+SsgPpUAzbBp9MXuRwHm51auphOHBNx3FULv1zyTaID3oeyzQPt1bpEjPlI WM0Dj1Bnhel0CjAyFh/NeWgo2pbu+sYh5Ux3Jvl3msyaQ7P/yBvmSAWttgcuK6shKZHT iOCrIP4xaLmDkyg5Kc3+4mkWDT5TKXzIrpI4ndKj1Ll4wh1bnBix5BkdmzdWROIzSsdG ilTY1/iGy3G5abcamJnFD/25XpAUIPZQdDFhYKmj12TUmhOrVsxDz8tTiSXbsJPHyniu RVQmNJW3imfFvvHtaJF+tzoNt11cIq+4fuNy+vYietSi6hHCEDUfwzDUWZosCd4F/oZG W14g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-14-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b="HtWQf/wq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si796122ejm.543.2021.05.02.21.39.47; Sun, 02 May 2021 21:40:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-14-ed; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b="HtWQf/wq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231531AbhECEfX (ORCPT + 99 others); Mon, 3 May 2021 00:35:23 -0400 Received: from server.lespinasse.org ([63.205.204.226]:58935 "EHLO server.lespinasse.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhECEfX (ORCPT ); Mon, 3 May 2021 00:35:23 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-ed; t=1620016470; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=IVSN4rXFsAqhRrOBaOG8oTadR0XsOpnayasis5eGn9U=; b=GiTjC8TtRi8A2CDiu0777x7lS1aQSG/UClzMN3PifJJ0qYNcWlGgoD08V63aSXdrhQaCD a0zQ+St3HpALbCICA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-rsa; t=1620016470; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=IVSN4rXFsAqhRrOBaOG8oTadR0XsOpnayasis5eGn9U=; b=HtWQf/wqqDk6NgXnD50nv0QWm5dqjfsaZFbvL2Nw4gMOyDbtnDhWr0HW+xpDBBYtTC52O xek042nGdx7+Fx9JDYaqolvI6ByvUSHoVsgheAUf4SwqiKTzoHWoj128m50WOruyxmtDI/h tIcrAvsMACJcOWPm2Ir3rH3SMrYv5OI9CcQyHBow4g3v4oGH0DzSMmz3fEo955xd/dGneZ7 g71w5qh/S4h+5GF8jRzyDRkjf/IcAHtrZVUalbkbGyppCNXhiRiIws6mzPCZgDUKF4OM0aA ztyf3YdFTvD4Cgy33gs7gSITuLuFgjF39rbxqkgctAwWXd0GcQp6HJzahL6w== Received: by server.lespinasse.org (Postfix, from userid 1000) id 13274160055; Sun, 2 May 2021 21:34:30 -0700 (PDT) Date: Sun, 2 May 2021 21:34:30 -0700 From: Michel Lespinasse To: "Paul E. McKenney" Cc: Michel Lespinasse , Andy Lutomirski , Linux-MM , Laurent Dufour , Peter Zijlstra , Michal Hocko , Matthew Wilcox , Rik van Riel , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Rom Lemarchand , Linux-Kernel Subject: Re: [RFC PATCH 13/37] mm: implement speculative handling in __handle_mm_fault(). Message-ID: <20210503043430.GA16059@lespinasse.org> References: <20210407014502.24091-14-michel@lespinasse.org> <20210428145823.GA856@lespinasse.org> <20210428161108.GP975577@paulmck-ThinkPad-P17-Gen-1> <20210429000225.GC10973@lespinasse.org> <20210429155250.GV975577@paulmck-ThinkPad-P17-Gen-1> <20210429183412.GA278623@paulmck-ThinkPad-P17-Gen-1> <20210429211758.GE10973@lespinasse.org> <20210503034049.GQ975577@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210503034049.GQ975577@paulmck-ThinkPad-P17-Gen-1> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 02, 2021 at 08:40:49PM -0700, Paul E. McKenney wrote: > @@ -634,6 +644,12 @@ do { \ > * sections, invocation of the corresponding RCU callback is deferred > * until after the all the other CPUs exit their critical sections. > * > + * In recent kernels, synchronize_rcu() and call_rcu() also wait for > + * regions of code with preemption disabled, including regions of code > + * with interrupts or softirqs disabled. If your kernel is old enough > + * for synchronize_sched() to be defined, only code enclosed within > + * rcu_read_lock() and rcu_read_unlock() are guaranteed to be waited for. > + * > * Note, however, that RCU callbacks are permitted to run concurrently > * with new RCU read-side critical sections. One way that this can happen > * is via the following sequence of events: (1) CPU 0 enters an RCU You still have "old enough" / "recent kernels" here. But maybe it's OK given that you added relevant version numbers elsewhere. Everything else looks great to me. Thanks, -- Michel "walken" Lespinasse