]> err.no Git - linux-2.6/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)
commit7f04ac062e92a37bb0fa3313405597244b4702c1
treea81e9df761334ccba5b5793866f96910842a7194
parent7adc28ae75854d9d0940668404a14d1f006f80c0
[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