From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753261AbYI3KJk (ORCPT ); Tue, 30 Sep 2008 06:09:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752532AbYI3KJc (ORCPT ); Tue, 30 Sep 2008 06:09:32 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:53424 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752516AbYI3KJb (ORCPT ); Tue, 30 Sep 2008 06:09:31 -0400 Date: Tue, 30 Sep 2008 12:08:30 +0200 From: Ingo Molnar To: Mathieu Desnoyers , "Paul E. McKenney" Cc: Lai Jiangshan , Andrew Morton , "Paul E. McKenney" , Linux Kernel Mailing List , Steven Rostedt , Peter Zijlstra Subject: Re: [PATCH] RCU read sched Message-ID: <20080930100829.GC7557@elte.hu> References: <48E08B05.7030802@cn.fujitsu.com> <20080929082722.GB18663@elte.hu> <20080929150646.GD11245@Krystal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080929150646.GD11245@Krystal> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers wrote: > (probably already in -tip) > > Add rcu_read_lock_sched() and rcu_read_unlock_sched() to rcupdate.h to match the > recently added write-side call_rcu_sched() and rcu_barrier_sched(). They also > match the no-so-recently-added synchronize_sched(). > > It will help following matching use of the update/read lock primitives. Those > new read lock will replace preempt_disable()/enable() used in pair with > RCU-classic synchronization. > > Signed-off-by: Mathieu Desnoyers > Acked-by: Peter Zijlstra > CC: Paul E McKenney Paul, does this API extension look good to you? i'll apply it to tip/core/rcu if yes. Ingo