[PATCH 11/13] RFC: nfs: retry on certain pnfs errors

Fred Isaman
2010-09-09T18:10:43Z

From: The pNFS Team <linux-nfs@vger.kernel.org>

Add to the list of errors that cause the client to keep
retrying with exponential backoff.

Signed-off-by: TBD - melding/reorganization of several patches
---
fs/nfs/nfs4proc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 9e6b086..c7c7277 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -286,6 +286,8 @@ static int nfs4_handle_exception(const struct nfs_server *server, int errorcode,
case -NFS4ERR_GRACE:
case -NFS4ERR_DELAY:
case -EKEYEXPIRED:
+ case -NFS4ERR_LAYOUTTRYLATER:
+ case -NFS4ERR_RECALLCONFLICT:
ret = nfs4_delay(server->client, &exception->timeout);
if (ret != 0)
break;
--
1.7.2.1