rcu: Document same-context read-side constraints
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 28 Nov 2011 18:42:42 +0000 (10:42 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 11 Dec 2011 18:32:06 +0000 (10:32 -0800)
commit3842a0832a1d6eb0b31421f8810a813135967512
tree67aff02fde9c32e647d7b3c4cea948d7867f664d
parentf0e7c19db8798b4b991a2c71911e71f5dfdb348f
rcu: Document same-context read-side constraints

The intent is that a given RCU read-side critical section be confined
to a single context.  For example, it is illegal to invoke rcu_read_lock()
in an exception handler and then invoke rcu_read_unlock() from the
context of the task that received the exception.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
include/linux/srcu.h