Allow d_manage() to be used in RCU-walk mode
Allow d_manage() to be called from pathwalk when it is in RCU-walk mode as well as when it is in Ref-walk mode. This permits __follow_mount_rcu() to call d_manage() directly. d_manage() needs a parameter to indicate that it is in RCU-walk mode as it isn't allowed to sleep if in that mode (but should return -ECHILD instead). autofs4_d_manage() can then be set to retain RCU-walk mode if the daemon accesses it and otherwise request dropping back to ref-walk mode. Signed-off-by:David Howells <dhowells@redhat.com> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- Documentation/filesystems/Locking 1 addition, 1 deletionDocumentation/filesystems/Locking
- Documentation/filesystems/vfs.txt 6 additions, 1 deletionDocumentation/filesystems/vfs.txt
- fs/autofs4/root.c 6 additions, 2 deletionsfs/autofs4/root.c
- fs/namei.c 8 additions, 7 deletionsfs/namei.c
- include/linux/dcache.h 1 addition, 1 deletioninclude/linux/dcache.h
Loading
Please register or sign in to comment