]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Make vnode->cb_interest RCU safe
authorDavid Howells <dhowells@redhat.com>
Mon, 13 May 2019 15:14:32 +0000 (16:14 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 May 2019 21:23:21 +0000 (22:23 +0100)
commit6cfc4d014aabae2733302b0dc6680d4b5f9e6cae
treeddf39d1741f07866333581e66f1abc0e6709d453
parent3bfb36cd5fe6b74711d74e9d22317fb04473ebea
afs: Make vnode->cb_interest RCU safe

Use RCU-based freeing for afs_cb_interest struct objects and use RCU on
vnode->cb_interest.  Use that change to allow afs_check_validity() to use
read_seqbegin_or_lock() instead of read_seqlock_excl().

This also requires the caller of afs_check_validity() to hold the RCU read
lock across the call.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/callback.c
fs/afs/dir.c
fs/afs/inode.c
fs/afs/internal.h
fs/afs/rotate.c
fs/afs/security.c
fs/afs/super.c