summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-12-04 15:55:34 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-12-04 15:55:34 -0500
commit8ba9bf8e5160b0b4ebc56f64ad445c6c0ecdac1d (patch)
treebee5b90cc35392ed9e2281a09e1aa97ec881a7e8 /fs/nfs/nfs4state.c
parentb9179237e2b2b4d34b5821cca3db280ebbc8694a (diff)
downloadlinux-3.10-8ba9bf8e5160b0b4ebc56f64ad445c6c0ecdac1d.tar.gz
linux-3.10-8ba9bf8e5160b0b4ebc56f64ad445c6c0ecdac1d.tar.bz2
linux-3.10-8ba9bf8e5160b0b4ebc56f64ad445c6c0ecdac1d.zip
nfs41: fix switch in nfs4_recovery_handle_error
Do not fall through and set NFS4CLNT_SESSION_RESET bit on NFS4ERR_EXPIRED Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-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 902d8749bde..f56f6be5e31 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1085,6 +1085,7 @@ static int nfs4_recovery_handle_error(struct nfs_client *clp, int error)
case -NFS4ERR_EXPIRED:
set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
nfs4_state_start_reclaim_nograce(clp);
+ break;
case -NFS4ERR_BADSESSION:
case -NFS4ERR_BADSLOT:
case -NFS4ERR_BAD_HIGH_SLOT: