]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] rcu: add lock annotations to rcu{,_bh}_torture_read_{lock,unlock}
authorJosh Triplett <josht@us.ibm.com>
Fri, 29 Sep 2006 08:59:30 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:08 +0000 (09:18 -0700)
commit846adb9b0918750f62aca7b3c40e0a32d1156468
treee93b6621352db514da2fd4ae364a5054f99fc6ac
parent3e688a20bd311273e831d9628f0d37823e6960bd
[PATCH] rcu: add lock annotations to rcu{,_bh}_torture_read_{lock,unlock}

rcu_torture_read_lock and rcu_bh_torture_read_lock acquire locks without
releasing them, and the matching functions rcu_torture_read_unlock and
rcu_bh_torture_read_unlock get called with the corresponding locks held and
release them.  Add lock annotations to these four functions so that sparse
can check callers for lock pairing, and so that sparse will not complain
about these functions since they intentionally use locks in this manner.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: Paul McKenney <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/rcutorture.c