SUNRPC: call_connect_status should handle -EPROTO
authorChuck Lever <chuck.lever@oracle.com>
Mon, 23 Dec 2019 15:28:44 +0000 (10:28 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:31 +0000 (10:54 -0500)
commitb8457606d95f219052cbcf07bd54c24c4290cd49
tree74bcb89b3063fe26a99d8dce9660c0b9bdb2c9ea
parent2bb50aabb6f32c11dc9b542b4bb214b14e031e6c
SUNRPC: call_connect_status should handle -EPROTO

The xprtrdma connect logic can return -EPROTO if the underlying
device or network path does not support RDMA. This can happen
after a device removal/insertion.

- When SOFTCONN is set, EPROTO is a permanent error.

- When SOFTCONN is not set, EPROTO is treated as a temporary error.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/clnt.c