提交 150e7260 编写于 作者: T Trond Myklebust

NFSv4: Ensure we respect soft mount timeouts during trunking discovery

Tested-by: NSteve Dickson <steved@redhat.com>
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 f9b7ebdf
...@@ -2075,8 +2075,10 @@ int nfs4_discover_server_trunking(struct nfs_client *clp, ...@@ -2075,8 +2075,10 @@ int nfs4_discover_server_trunking(struct nfs_client *clp,
switch (status) { switch (status) {
case 0: case 0:
break; break;
case -NFS4ERR_DELAY:
case -ETIMEDOUT: case -ETIMEDOUT:
if (clnt->cl_softrtry)
break;
case -NFS4ERR_DELAY:
case -EAGAIN: case -EAGAIN:
ssleep(1); ssleep(1);
case -NFS4ERR_STALE_CLIENTID: case -NFS4ERR_STALE_CLIENTID:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册