Commit 431794e6 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

pNFS/files: Handle RDMA connection errors correctly



The RPC/RDMA driver will return -EPROTO and -ENODEV as connection errors
under certain circumstances. Make sure that we handle them correctly and
avoid cycling forever in a LAYOUTGET/LAYOUTRETURN loop.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 7836d754
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -181,6 +181,8 @@ static int filelayout_async_handle_error(struct rpc_task *task,
	case -EIO:
	case -ETIMEDOUT:
	case -EPIPE:
	case -EPROTO:
	case -ENODEV:
		dprintk("%s DS connection error %d\n", __func__,
			task->tk_status);
		nfs4_mark_deviceid_unavailable(devid);