srcu: Add might_sleep() annotation to synchronize_srcu()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 29 Nov 2012 08:46:03 +0000 (16:46 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 7 Feb 2013 23:08:19 +0000 (15:08 -0800)
commit6e6f1b307e23201fb3e7aaf16322e80355d2a3d5
tree1664a448ebf4d45c0aadf6fe186644ee5d8ebdce
parent5a41344a3d83ef2c08e40bfce1efa5795def9b82
srcu: Add might_sleep() annotation to synchronize_srcu()

Although synchronize_srcu() can sleep, it will not sleep if the fast
path succeeds, which means that illegal use of synchronize_rcu()
might go unnoticed.  This commit therefore adds might_sleep(), which
unconditionally catches illegal use of synchronize_rcu() from atomic
context.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/srcu.c