diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 01b90bd341bb..2564e1c89f56 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -389,6 +389,9 @@ static int nfs4_handle_exception(struct nfs_server *server, int errorcode, struc | |||
389 | if (ret < 0) | 389 | if (ret < 0) |
390 | break; | 390 | break; |
391 | goto wait_on_recovery; | 391 | goto wait_on_recovery; |
392 | case -NFS4ERR_LEASE_MOVED: | ||
393 | nfs4_schedule_lease_moved_recovery(clp); | ||
394 | goto wait_on_recovery; | ||
392 | #if defined(CONFIG_NFS_V4_1) | 395 | #if defined(CONFIG_NFS_V4_1) |
393 | case -NFS4ERR_BADSESSION: | 396 | case -NFS4ERR_BADSESSION: |
394 | case -NFS4ERR_BADSLOT: | 397 | case -NFS4ERR_BADSLOT: |
@@ -1578,6 +1581,9 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct | |||
1578 | case -NFS4ERR_MOVED: | 1581 | case -NFS4ERR_MOVED: |
1579 | nfs4_schedule_migration_recovery(server); | 1582 | nfs4_schedule_migration_recovery(server); |
1580 | return -EAGAIN; | 1583 | return -EAGAIN; |
1584 | case -NFS4ERR_LEASE_MOVED: | ||
1585 | nfs4_schedule_lease_moved_recovery(server->nfs_client); | ||
1586 | return -EAGAIN; | ||
1581 | case -NFS4ERR_DELEG_REVOKED: | 1587 | case -NFS4ERR_DELEG_REVOKED: |
1582 | case -NFS4ERR_ADMIN_REVOKED: | 1588 | case -NFS4ERR_ADMIN_REVOKED: |
1583 | case -NFS4ERR_BAD_STATEID: | 1589 | case -NFS4ERR_BAD_STATEID: |
@@ -4758,6 +4764,9 @@ nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server, | |||
4758 | if (nfs4_schedule_migration_recovery(server) < 0) | 4764 | if (nfs4_schedule_migration_recovery(server) < 0) |
4759 | goto recovery_failed; | 4765 | goto recovery_failed; |
4760 | goto wait_on_recovery; | 4766 | goto wait_on_recovery; |
4767 | case -NFS4ERR_LEASE_MOVED: | ||
4768 | nfs4_schedule_lease_moved_recovery(clp); | ||
4769 | goto wait_on_recovery; | ||
4761 | #if defined(CONFIG_NFS_V4_1) | 4770 | #if defined(CONFIG_NFS_V4_1) |
4762 | case -NFS4ERR_BADSESSION: | 4771 | case -NFS4ERR_BADSESSION: |
4763 | case -NFS4ERR_BADSLOT: | 4772 | case -NFS4ERR_BADSLOT: |