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>
Showing
- fs/afs/callback.c 12 additions, 9 deletionsfs/afs/callback.c
- fs/afs/dir.c 10 additions, 5 deletionsfs/afs/dir.c
- fs/afs/inode.c 50 additions, 31 deletionsfs/afs/inode.c
- fs/afs/internal.h 9 additions, 3 deletionsfs/afs/internal.h
- fs/afs/rotate.c 12 additions, 6 deletionsfs/afs/rotate.c
- fs/afs/security.c 5 additions, 3 deletionsfs/afs/security.c
- fs/afs/super.c 2 additions, 2 deletionsfs/afs/super.c
Loading
Please register or sign in to comment