From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f198.google.com (mail-io0-f198.google.com [209.85.223.198]) by kanga.kvack.org (Postfix) with ESMTP id 7A6FA6B02A8 for ; Tue, 27 Sep 2016 10:39:39 -0400 (EDT) Received: by mail-io0-f198.google.com with SMTP id 92so41058234iom.3 for ; Tue, 27 Sep 2016 07:39:39 -0700 (PDT) Received: from merlin.infradead.org (merlin.infradead.org. [2001:4978:20e::2]) by mx.google.com with ESMTPS id 18si3908792ion.58.2016.09.27.07.39.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2016 07:39:39 -0700 (PDT) Date: Tue, 27 Sep 2016 16:39:26 +0200 From: Peter Zijlstra Subject: Re: [PATCH v15 04/13] task_isolation: add initial support Message-ID: <20160927143926.GQ2794@worktop> References: <20160830075854.GZ10153@twins.programming.kicks-ass.net> <3f84f736-ed7f-adff-d5f0-4f7db664208f@mellanox.com> <20160927142219.GC6242@lerouge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160927142219.GC6242@lerouge> Sender: owner-linux-mm@kvack.org List-ID: To: Frederic Weisbecker Cc: Andy Lutomirski , Chris Metcalf , Thomas Gleixner , "linux-doc@vger.kernel.org" , Christoph Lameter , Michal Hocko , Gilad Ben Yossef , Andrew Morton , Viresh Kumar , Linux API , Steven Rostedt , Ingo Molnar , Tejun Heo , Rik van Riel , Will Deacon , "Paul E. McKenney" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Catalin Marinas On Tue, Sep 27, 2016 at 04:22:20PM +0200, Frederic Weisbecker wrote: > The RCU context tracking doesn't take care of callbacks. It's only there > to tell the RCU core whether the CPU runs code that may or may not run > RCU read side critical sections. This is assumed by "kernel may use RCU, > userspace can't". Userspace never can use the kernels RCU in any case. What you mean to say is that userspace is treated like an idle CPU in that the CPU will no longer be part of the RCU quescent state machine. The transition to userspace (as per context tracking) must ensure that CPUs RCU state is 'complete', just like our transition to idle (mostly) does. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org