summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-01-26 15:14:52 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-01-26 15:25:03 -0500
commit406dab8450ec76eca88a1af2fc15d18a2b36ca49 (patch)
treed08c598a64c13f71744a99ff789fd87047387ff5 /fs
parentc929ea0b910355e1876c64431f3d5802f95b3d75 (diff)
downloadlinux-stable-406dab8450ec76eca88a1af2fc15d18a2b36ca49.tar.gz
linux-stable-406dab8450ec76eca88a1af2fc15d18a2b36ca49.tar.bz2
linux-stable-406dab8450ec76eca88a1af2fc15d18a2b36ca49.zip
nfs: Fix "Don't increment lock sequence ID after NFS4ERR_MOVED"
Lock sequence IDs are bumped in decode_lock by calling nfs_increment_seqid(). nfs_increment_sequid() does not use the seqid_mutating_err() function fixed in commit 059aa7348241 ("Don't increment lock sequence ID after NFS4ERR_MOVED"). Fixes: 059aa7348241 ("Don't increment lock sequence ID after ...") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Tested-by: Xuan Qi <xuan.qi@oracle.com> Cc: stable@vger.kernel.org # v3.7+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 90e6193ce6be..daeb94e3acd4 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1091,6 +1091,7 @@ static void nfs_increment_seqid(int status, struct nfs_seqid *seqid)
case -NFS4ERR_BADXDR:
case -NFS4ERR_RESOURCE:
case -NFS4ERR_NOFILEHANDLE:
+ case -NFS4ERR_MOVED:
/* Non-seqid mutating errors */
return;
};