summaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback_proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2018-06-29 18:45:53 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2018-07-26 22:25:25 +0200
commitaf9b6d7570ca9afbbc6076ab7920d8f00f7e55c1 (patch)
tree4fbc674f3e1e9b1218a8d028132376ca2ea9e477 /fs/nfs/callback_proc.c
parentNFS: Allow optimisation of lseek(fd, SEEK_CUR, 0) on directories (diff)
downloadlinux-af9b6d7570ca9afbbc6076ab7920d8f00f7e55c1.tar.xz
linux-af9b6d7570ca9afbbc6076ab7920d8f00f7e55c1.zip
pNFS: Parse the results of layoutget on open even if permissions checks fail
Even if the results of the permissions checks failed, we should parse the results of the layout on open call so that we can return the layout if required. Note that we also want to ignore the sequence counter for whether or not a layout recall occurred. If the recall pertained to our OPEN, then the callback will know, and will attempt to wait for us to finih processing anyway. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r--fs/nfs/callback_proc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index efca3d6c89f2..43ba390bb653 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -331,8 +331,6 @@ static u32 initiate_bulk_draining(struct nfs_client *clp,
static u32 do_callback_layoutrecall(struct nfs_client *clp,
struct cb_layoutrecallargs *args)
{
- write_seqcount_begin(&clp->cl_callback_count);
- write_seqcount_end(&clp->cl_callback_count);
if (args->cbl_recall_type == RETURN_FILE)
return initiate_file_draining(clp, args);
return initiate_bulk_draining(clp, args);