diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-30 23:45:41 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-30 23:45:41 -0400 |
commit | 1c7da74c4aab595a994beb5fe728ebf0d0b41f59 (patch) | |
tree | 64128abdf9550ebb51d8f3ee6732d7350b9c62f2 /kernel/rcutorture.c | |
parent | aebb1153ac54ddbbd3d3f0481a193f4bf0ead53b (diff) | |
parent | 1bdfd554be94def718323659173517c5d4a69d25 (diff) |
Merge branch 'master' into upstream
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 4d1c3d247127..4f2c4272d59c 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -192,13 +192,13 @@ static struct rcu_torture_ops *cur_ops = NULL; | |||
192 | * Definitions for rcu torture testing. | 192 | * Definitions for rcu torture testing. |
193 | */ | 193 | */ |
194 | 194 | ||
195 | static int rcu_torture_read_lock(void) | 195 | static int rcu_torture_read_lock(void) __acquires(RCU) |
196 | { | 196 | { |
197 | rcu_read_lock(); | 197 | rcu_read_lock(); |
198 | return 0; | 198 | return 0; |
199 | } | 199 | } |
200 | 200 | ||
201 | static void rcu_torture_read_unlock(int idx) | 201 | static void rcu_torture_read_unlock(int idx) __releases(RCU) |
202 | { | 202 | { |
203 | rcu_read_unlock(); | 203 | rcu_read_unlock(); |
204 | } | 204 | } |
@@ -250,13 +250,13 @@ static struct rcu_torture_ops rcu_ops = { | |||
250 | * Definitions for rcu_bh torture testing. | 250 | * Definitions for rcu_bh torture testing. |
251 | */ | 251 | */ |
252 | 252 | ||
253 | static int rcu_bh_torture_read_lock(void) | 253 | static int rcu_bh_torture_read_lock(void) __acquires(RCU_BH) |
254 | { | 254 | { |
255 | rcu_read_lock_bh(); | 255 | rcu_read_lock_bh(); |
256 | return 0; | 256 | return 0; |
257 | } | 257 | } |
258 | 258 | ||
259 | static void rcu_bh_torture_read_unlock(int idx) | 259 | static void rcu_bh_torture_read_unlock(int idx) __releases(RCU_BH) |
260 | { | 260 | { |
261 | rcu_read_unlock_bh(); | 261 | rcu_read_unlock_bh(); |
262 | } | 262 | } |