aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorAnand Avati <[email protected]>2014-06-26 20:21:57 -0400
committerMiklos Szeredi <[email protected]>2014-07-07 15:28:51 +0200
commit154210ccb3a871e631bf39fdeb7a8731d98af87b (patch)
treeeb76bb3de0ff3406996dc08b2018f54ac674114a /include/linux/fpga/fpga-mgr.h
parent126b9d4365b110c157bc4cbc32540dfa66c9c85a (diff)
fuse: ignore entry-timeout on LOOKUP_REVAL
The following test case demonstrates the bug: sh# mount -t glusterfs localhost:meta-test /mnt/one sh# mount -t glusterfs localhost:meta-test /mnt/two sh# echo stuff > /mnt/one/file; rm -f /mnt/two/file; echo stuff > /mnt/one/file bash: /mnt/one/file: Stale file handle sh# echo stuff > /mnt/one/file; rm -f /mnt/two/file; sleep 1; echo stuff > /mnt/one/file On the second open() on /mnt/one, FUSE would have used the old nodeid (file handle) trying to re-open it. Gluster is returning -ESTALE. The ESTALE propagates back to namei.c:filename_lookup() where lookup is re-attempted with LOOKUP_REVAL. The right behavior now, would be for FUSE to ignore the entry-timeout and and do the up-call revalidation. Instead FUSE is ignoring LOOKUP_REVAL, succeeding the revalidation (because entry-timeout has not passed), and open() is again retried on the old file handle and finally the ESTALE is going back to the application. Fix: if revalidation is happening with LOOKUP_REVAL, then ignore entry-timeout and always do the up-call. Signed-off-by: Anand Avati <[email protected]> Reviewed-by: Niels de Vos <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Cc: [email protected]
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions