summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorRicardo Labiaga2009-12-07 15:48:30 +0100
committerTrond Myklebust2009-12-07 15:48:30 +0100
commit74e7bb73a3e0d15a7db10b0f2b2efdeeef36609e (patch)
treea2e4f4bbed15b265b4064337519e0717da8bfdcd /fs/nfs
parentnfs41: Retry delegation return if it failed with session error (diff)
downloadkernel-qcow2-linux-74e7bb73a3e0d15a7db10b0f2b2efdeeef36609e.tar.gz
kernel-qcow2-linux-74e7bb73a3e0d15a7db10b0f2b2efdeeef36609e.tar.xz
kernel-qcow2-linux-74e7bb73a3e0d15a7db10b0f2b2efdeeef36609e.zip
nfs41: Handle NFSv4.1 session errors in the delegation recall code
Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index d8c2ceb303d1..cdf17d628450 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -4180,6 +4180,11 @@ int nfs4_lock_delegation_recall(struct nfs4_state *state, struct file_lock *fl)
case -NFS4ERR_EXPIRED:
case -NFS4ERR_STALE_CLIENTID:
case -NFS4ERR_STALE_STATEID:
+ case -NFS4ERR_BADSESSION:
+ case -NFS4ERR_BADSLOT:
+ case -NFS4ERR_BAD_HIGH_SLOT:
+ case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION:
+ case -NFS4ERR_DEADSESSION:
nfs4_schedule_state_recovery(server->nfs_client);
goto out;
case -ERESTARTSYS: