From 32b5eff5bc3a6213879a504b7d787b89cb82e190 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 29 Sep 2008 11:06:46 -0400 Subject: [PATCH] --- yaml --- r: 110783 b: refs/heads/master c: 1c50b728c3e734150b8a4a8310ce3e01bc5c70be h: refs/heads/master i: 110781: ba597a286028ecbbbafa0236f7598fb7a34d7002 110779: ff3acc4bf0785573626ad94bdc34f4d45eb9acd2 110775: 6e43a8b173e75e9ce869a5c464bb74bbb84b30f5 110767: 763a56dc633bc5bad310982a362484cbfe671613 110751: f576e57c6f733724343f21d6786ca5e0aec37187 110719: aee1d86892437bec7f1409000e4a8f304aa01149 v: v3 --- [refs] | 2 +- trunk/include/linux/rcupdate.h | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 89a6315f0c9a..09d7369460fa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3a72dc8eb5a7122fff439a22bd22486a4fff505c +refs/heads/master: 1c50b728c3e734150b8a4a8310ce3e01bc5c70be diff --git a/trunk/include/linux/rcupdate.h b/trunk/include/linux/rcupdate.h index e8b4039cfb2f..86f1f5e43e33 100644 --- a/trunk/include/linux/rcupdate.h +++ b/trunk/include/linux/rcupdate.h @@ -132,6 +132,26 @@ struct rcu_head { */ #define rcu_read_unlock_bh() __rcu_read_unlock_bh() +/** + * rcu_read_lock_sched - mark the beginning of a RCU-classic critical section + * + * Should be used with either + * - synchronize_sched() + * or + * - call_rcu_sched() and rcu_barrier_sched() + * on the write-side to insure proper synchronization. + */ +#define rcu_read_lock_sched() preempt_disable() + +/* + * rcu_read_unlock_sched - marks the end of a RCU-classic critical section + * + * See rcu_read_lock_sched for more information. + */ +#define rcu_read_unlock_sched() preempt_enable() + + + /** * rcu_dereference - fetch an RCU-protected pointer in an * RCU read-side critical section. This pointer may later