afs: Support RCU pathwalk
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)
commita0753c29004f4983e303abce019f29e183b1ee48
tree0227fe9742afaf92caddb7e5f086cf5f474becf0
parent8b6a666a97544bf307190a05947742b8357aa962
afs: Support RCU pathwalk

Make afs_permission() and afs_d_revalidate() do initial checks in RCU-mode
pathwalk to reduce latency in pathwalk elements that get done multiple
times.  We don't need to query the server unless we've received a
notification from it that something has changed or the callback has
expired.

This requires that we can request a key and check permits under RCU
conditions if we need to.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dir.c
fs/afs/security.c