From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934185AbcI0Ovk (ORCPT ); Tue, 27 Sep 2016 10:51:40 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36805 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932749AbcI0Ovc (ORCPT ); Tue, 27 Sep 2016 10:51:32 -0400 Date: Tue, 27 Sep 2016 16:51:29 +0200 From: Frederic Weisbecker To: Peter Zijlstra 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 Subject: Re: [PATCH v15 04/13] task_isolation: add initial support Message-ID: <20160927145128.GF6242@lerouge> References: <3f84f736-ed7f-adff-d5f0-4f7db664208f@mellanox.com> <20160927142219.GC6242@lerouge> <20160927143926.GQ2794@worktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160927143926.GQ2794@worktop> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2016 at 04:39:26PM +0200, Peter Zijlstra wrote: > 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. Exactly!