summaryrefslogtreecommitdiffstats
path: root/drivers/char/dtlk.c
diff options
context:
space:
mode:
authorMiklos Szeredi2012-05-21 17:30:19 +0200
committerAl Viro2012-06-01 18:12:01 +0200
commit16b1c1cd71176ab0a76b26818fbf12db9183ed57 (patch)
treeda4ab8077cc3d9dce5b6ec2d003074cba3841446 /drivers/char/dtlk.c
parentvfs: nameidata_to_filp(): don't throw away file on error (diff)
downloadkernel-qcow2-linux-16b1c1cd71176ab0a76b26818fbf12db9183ed57.tar.gz
kernel-qcow2-linux-16b1c1cd71176ab0a76b26818fbf12db9183ed57.tar.xz
kernel-qcow2-linux-16b1c1cd71176ab0a76b26818fbf12db9183ed57.zip
vfs: retry last component if opening stale dentry
NFS optimizes away d_revalidates for last component of open. This means that open itself can find the dentry stale. This patch allows the filesystem to return EOPENSTALE and the VFS will retry the lookup on just the last component if possible. If the lookup was done using RCU mode, including the last component, then this is not possible since the parent dentry is lost. In this case fall back to non-RCU lookup. Currently this is not used since NFS will always leave RCU mode. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char/dtlk.c')
0 files changed, 0 insertions, 0 deletions