]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] rcu: Add lock annotations to RCU locking primitives
authorJosh Triplett <josht@vnet.ibm.com>
Fri, 30 Jun 2006 08:56:05 +0000 (01:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Jun 2006 18:25:39 +0000 (11:25 -0700)
commit6f02743e00d4507795bc3c880c5258807c749e23
treea81e9df761334ccba5b5793866f96910842a7194
parent03744c387556d85396ab91fc529f7401502e953f
[PATCH] rcu: Add lock annotations to RCU locking primitives

Add __acquire annotations to rcu_read_lock and rcu_read_lock_bh, and add
__release annotations to rcu_read_unlock and rcu_read_unlock_bh.  This
allows sparse to detect improperly paired calls to these functions.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Acked-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/rcupdate.h