summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-03-18 14:23:11 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-03-19 08:34:40 -0400
commit150e7260f309fd07e853c05f7fc55b7cccb4780d (patch)
tree0bfbd8bdf2868948359a972ee0cb475d42f353e5 /fs/nfs
parentf9b7ebdf7e41671de7926a5951c324258200b42a (diff)
downloadop-kernel-dev-150e7260f309fd07e853c05f7fc55b7cccb4780d.zip
op-kernel-dev-150e7260f309fd07e853c05f7fc55b7cccb4780d.tar.gz
NFSv4: Ensure we respect soft mount timeouts during trunking discovery
Tested-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index f544a15..2349518 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -2075,8 +2075,10 @@ again:
switch (status) {
case 0:
break;
- case -NFS4ERR_DELAY:
case -ETIMEDOUT:
+ if (clnt->cl_softrtry)
+ break;
+ case -NFS4ERR_DELAY:
case -EAGAIN:
ssleep(1);
case -NFS4ERR_STALE_CLIENTID:
OpenPOWER on IntegriCloud