diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-06-21 10:16:56 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-06-27 21:44:58 -0400 |
| commit | 898fc11bb2bd4fbcefb685872d9fffaba2c8edaf (patch) | |
| tree | b0750f37005b8852f4efe24c86181cf3dbf661bd /fs | |
| parent | 501e7a4689378f8b1690089bfdd4f1e12ec22903 (diff) | |
NFS: Trunking detection should handle ERESTARTSYS/EINTR
Currently, it will return EIO in those cases.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/nfs/nfs4state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index b34de036501b..cbf82b0d4467 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
| @@ -2134,6 +2134,8 @@ again: | |||
| 2134 | put_rpccred(cred); | 2134 | put_rpccred(cred); |
| 2135 | switch (status) { | 2135 | switch (status) { |
| 2136 | case 0: | 2136 | case 0: |
| 2137 | case -EINTR: | ||
| 2138 | case -ERESTARTSYS: | ||
| 2137 | break; | 2139 | break; |
| 2138 | case -ETIMEDOUT: | 2140 | case -ETIMEDOUT: |
| 2139 | if (clnt->cl_softrtry) | 2141 | if (clnt->cl_softrtry) |
