summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-10-17 14:13:24 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-28 15:25:30 -0400
commit352297b917d8a3e61a778ffb0f0195ce8550d7f5 (patch)
tree5c32e5ac23f566cb4ff3e67c4999f5657184fd08 /fs/nfs/nfs4proc.c
parent519ae255d403219fd5375de13c95dea3ef1cfda0 (diff)
downloadop-kernel-dev-352297b917d8a3e61a778ffb0f0195ce8550d7f5.zip
op-kernel-dev-352297b917d8a3e61a778ffb0f0195ce8550d7f5.tar.gz
NFS: Handle NFS4ERR_MOVED during delegation recall
When a server returns NFS4ERR_MOVED during a delegation recall, trigger the new migration recovery logic in the state manager. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index a1f6209..552e4f7 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1575,6 +1575,9 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct
/* Don't recall a delegation if it was lost */
nfs4_schedule_lease_recovery(server->nfs_client);
return -EAGAIN;
+ case -NFS4ERR_MOVED:
+ nfs4_schedule_migration_recovery(server);
+ return -EAGAIN;
case -NFS4ERR_DELEG_REVOKED:
case -NFS4ERR_ADMIN_REVOKED:
case -NFS4ERR_BAD_STATEID:
OpenPOWER on IntegriCloud