afs: Provide an RCU-capable key lookup
authorDavid Howells <dhowells@redhat.com>
Mon, 20 May 2019 07:48:46 +0000 (08:48 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 2 Sep 2019 10:43:54 +0000 (11:43 +0100)
commit8b6a666a97544bf307190a05947742b8357aa962
tree16c344dabab751936bd81e720cc58620013976be
parent23a289137ab82daeea826eeb9556c6f89b1fcd67
afs: Provide an RCU-capable key lookup

Provide an RCU-capable key lookup function.  We don't want to call
afs_request_key() in RCU-mode pathwalk as request_key() might sleep, even if
we don't ask it to construct anything as it might find a key that is currently
undergoing construction.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/internal.h
fs/afs/security.c
include/linux/key.h