aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
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
parent519ae255d403219fd5375de13c95dea3ef1cfda0 (diff)
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')
-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 a1f620950f11..552e4f7a8225 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
1575 /* Don't recall a delegation if it was lost */ 1575 /* Don't recall a delegation if it was lost */
1576 nfs4_schedule_lease_recovery(server->nfs_client); 1576 nfs4_schedule_lease_recovery(server->nfs_client);
1577 return -EAGAIN; 1577 return -EAGAIN;
1578 case -NFS4ERR_MOVED:
1579 nfs4_schedule_migration_recovery(server);
1580 return -EAGAIN;
1578 case -NFS4ERR_DELEG_REVOKED: 1581 case -NFS4ERR_DELEG_REVOKED:
1579 case -NFS4ERR_ADMIN_REVOKED: 1582 case -NFS4ERR_ADMIN_REVOKED:
1580 case -NFS4ERR_BAD_STATEID: 1583 case -NFS4ERR_BAD_STATEID: