From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972Ab1H3OOn (ORCPT ); Tue, 30 Aug 2011 10:14:43 -0400 Received: from casper.infradead.org ([85.118.1.10]:48256 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753843Ab1H3OOm convert rfc822-to-8bit (ORCPT ); Tue, 30 Aug 2011 10:14:42 -0400 Subject: Re: [PATCH 05/32] nohz: Move rcu dynticks idle mode handling to idle enter/exit APIs From: Peter Zijlstra To: Frederic Weisbecker Cc: LKML , Andrew Morton , Anton Blanchard , Avi Kivity , Ingo Molnar , Lai Jiangshan , "Paul E . McKenney" , Stephen Hemminger , Thomas Gleixner , Tim Pepper , Paul Menage Date: Tue, 30 Aug 2011 16:13:57 +0200 In-Reply-To: <20110830141106.GM9748@somewhere.redhat.com> References: <1313423549-27093-1-git-send-email-fweisbec@gmail.com> <1313423549-27093-6-git-send-email-fweisbec@gmail.com> <1314627922.2816.65.camel@twins> <20110829171155.GD9748@somewhere.redhat.com> <1314640155.2816.117.camel@twins> <20110829175954.GF9748@somewhere.redhat.com> <1314641160.2816.128.camel@twins> <20110829233521.GK9748@somewhere.redhat.com> <1314703062.2799.1.camel@twins> <20110830141106.GM9748@somewhere.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.2- Message-ID: <1314713637.5812.4.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-08-30 at 16:11 +0200, Frederic Weisbecker wrote: > On Tue, Aug 30, 2011 at 01:17:42PM +0200, Peter Zijlstra wrote: > > On Tue, 2011-08-30 at 01:35 +0200, Frederic Weisbecker wrote: > > > But rcu read side critical sections (preemption disabled, rcu_read_lock(), > > > softirq disabled) don't need the tick to enforce the critical section > > > itself. > > > > Note that with PREEMPT_RCU only the rcu_read_lock() is actually an rcu > > read side critical section, non of the others should be used as such. > > Relying on preempt_disable(), local_bh_disable() and similar is broken > > as per a long while ago. > > Sure yeah. > > My point was that the patchset doesn't care about all that anyway. Read > side critical section still work as usual. What changes is the way we > notice periods where we are *not* in rcu read side critical sections. > This was previously partly made through the tick. Now it's still the case > but we need to remotely wake up that tick first. But you wake up the tick for any callback - systemwide - right? That's a massive fail.