From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f70.google.com (mail-vk0-f70.google.com [209.85.213.70]) by kanga.kvack.org (Postfix) with ESMTP id AB38D6B0274 for ; Tue, 27 Sep 2016 10:30:14 -0400 (EDT) Received: by mail-vk0-f70.google.com with SMTP id b133so18374973vka.3 for ; Tue, 27 Sep 2016 07:30:14 -0700 (PDT) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com. [2a00:1450:400c:c09::241]) by mx.google.com with ESMTPS id o15si14385044wmd.3.2016.09.27.07.22.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2016 07:22:33 -0700 (PDT) Received: by mail-wm0-x241.google.com with SMTP id w84so1413256wmg.0 for ; Tue, 27 Sep 2016 07:22:22 -0700 (PDT) Date: Tue, 27 Sep 2016 16:22:20 +0200 From: Frederic Weisbecker Subject: Re: [PATCH v15 04/13] task_isolation: add initial support Message-ID: <20160927142219.GC6242@lerouge> References: <20160830075854.GZ10153@twins.programming.kicks-ass.net> <3f84f736-ed7f-adff-d5f0-4f7db664208f@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: 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 , Peter Zijlstra On Fri, Sep 02, 2016 at 10:28:00AM -0700, Andy Lutomirski wrote: > > Unless I'm missing something (which is reasonably likely), couldn't > the isolation code just force or require rcu_nocbs on the isolated > CPUs to avoid this problem entirely. rcu_nocb is already implied by nohz_full. Which means that RCU callbacks are offlined outside the nohz_full set of CPUs. > > I admit I still don't understand why the RCU context tracking code > can't just run the callback right away instead of waiting however many > microseconds in general. I feel like paulmck has explained it to me > at least once, but that doesn't mean I remember the answer. 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". -- 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