diff options
author | Chuck Lever | 2013-10-17 20:13:24 +0200 |
---|---|---|
committer | Trond Myklebust | 2013-10-28 20:25:30 +0100 |
commit | 352297b917d8a3e61a778ffb0f0195ce8550d7f5 (patch) | |
tree | 5c32e5ac23f566cb4ff3e67c4999f5657184fd08 /fs/nfs/nfs4proc.c | |
parent | NFS: Add migration recovery callouts in nfs4proc.c (diff) | |
download | kernel-qcow2-linux-352297b917d8a3e61a778ffb0f0195ce8550d7f5.tar.gz kernel-qcow2-linux-352297b917d8a3e61a778ffb0f0195ce8550d7f5.tar.xz kernel-qcow2-linux-352297b917d8a3e61a778ffb0f0195ce8550d7f5.zip |
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.c | 3 |
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 /* 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: |