lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081116040026.GE7108@linux.vnet.ibm.com>
Date:	Sat, 15 Nov 2008 20:00:26 -0800
From:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To:	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc:	Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
	akpm@...ux-foundation.org,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Peter Zijlstra <peterz@...radead.org>
Subject: Re: [patch 01/16] RCU read sched notrace

On Fri, Nov 14, 2008 at 05:47:34PM -0500, Mathieu Desnoyers wrote:
> Add _notrace version to rcu_read_*_sched().
> 
> Impact: new API, useful for tracepoints and markers.

Looks good to me.  Just don't try it with rcu_read_lock(), given
preemptable RCU.  ;-)

Reviewed-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>

> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
> CC: Peter Zijlstra <peterz@...radead.org>
> CC: Paul E McKenney <paulmck@...ux.vnet.ibm.com>
> CC: 'Ingo Molnar' <mingo@...e.hu>
> CC: akpm@...ux-foundation.org
> ---
>  include/linux/rcupdate.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> Index: linux-2.6-lttng/include/linux/rcupdate.h
> ===================================================================
> --- linux-2.6-lttng.orig/include/linux/rcupdate.h	2008-10-08 10:27:57.000000000 -0400
> +++ linux-2.6-lttng/include/linux/rcupdate.h	2008-10-08 10:40:48.000000000 -0400
> @@ -142,6 +142,7 @@ struct rcu_head {
>   * on the write-side to insure proper synchronization.
>   */
>  #define rcu_read_lock_sched() preempt_disable()
> +#define rcu_read_lock_sched_notrace() preempt_disable_notrace()
> 
>  /*
>   * rcu_read_unlock_sched - marks the end of a RCU-classic critical section
> @@ -149,6 +150,7 @@ struct rcu_head {
>   * See rcu_read_lock_sched for more information.
>   */
>  #define rcu_read_unlock_sched() preempt_enable()
> +#define rcu_read_unlock_sched_notrace() preempt_enable_notrace()
> 
> 
> 
> 
> -- 
> Mathieu Desnoyers
> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ