aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback_proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 12:21:50 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 14:33:05 -0500
commite0d9243048fd18da695b8d3fe331176eac60866e (patch)
tree062c4b322a2c0d2f3ad3dc868955de259bbbb568 /fs/nfs/callback_proc.c
parentNFSv4.1/pNFS: Ensure we enforce RFC5661 Section 12.5.5.2.1 (diff)
downloadlinux-dev-e0d9243048fd18da695b8d3fe331176eac60866e.tar.xz
linux-dev-e0d9243048fd18da695b8d3fe331176eac60866e.zip
NFSv4.1/pNFS: Don't return NFS4ERR_DELAY unnecessarily in CB_LAYOUTRECALL
If the client is promising to return the layout ASAP, then there is no need to return DELAY and have the server retry. Instead default to the normal procedure described in RFC5661. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r--fs/nfs/callback_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index 1b24ad07d4f5..724a9b756ab0 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -214,7 +214,7 @@ static u32 initiate_file_draining(struct nfs_client *clp,
pnfs_mark_matching_lsegs_return(lo,
&free_me_list,
&args->cbl_range);
- rv = NFS4ERR_DELAY;
+ rv = NFS4_OK;
goto unlock;
}