From: Trond Myklebust Date: Mon, 28 Dec 2015 17:21:50 +0000 (-0500) Subject: NFSv4.1/pNFS: Don't return NFS4ERR_DELAY unnecessarily in CB_LAYOUTRECALL X-Git-Tag: v4.14-rc1~3930^2~6^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0d9243048fd18da695b8d3fe331176eac60866e;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 1b24ad0..724a9b7 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; }