]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb53a79725ab52d37ea1e1b50dac49c46c2796516
tree0227fe9742afaf92caddb7e5f086cf5f474becf0
parentd5ecbb7b4dda25a3d1a763c11d0189ebfb3bd653
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