CRED: Holding a spinlock does not imply the holding of RCU read lock
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 26 Apr 2010 10:58:49 +0000 (11:58 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 26 Apr 2010 22:49:03 +0000 (08:49 +1000)
commitb03df87d119f50715891dcc09e487f6ae5c029f1
tree69ef56146350a2f7d7bc7743e856490cc14bb7a5
parent98ec4373bab1d839f794e9a4edc29f77eb9d897e
CRED: Holding a spinlock does not imply the holding of RCU read lock

Change the credentials documentation to make it clear that the RCU read lock
must be explicitly held when accessing credentials pointers in some other task
than current.  Holding a spinlock does not implicitly hold the RCU read lock.

Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Documentation/credentials.txt