WSL2-Linux-Kernel/net/sunrpc/xprtrdma
Chuck Lever 7b2182ec38 xprtrdma: Fix handling of RDMA_ERROR replies
The RPC client currently doesn't handle ERR_CHUNK replies correctly.
rpcrdma_complete_rqst() incorrectly passes a negative number to
xprt_complete_rqst() as the number of bytes copied. Instead, set
task->tk_status to the error value, and return zero bytes copied.

In these cases, return -EIO rather than -EREMOTEIO. The RPC client's
finite state machine doesn't know what to do with -EREMOTEIO.

Additional clean ups:
- Don't double-count RDMA_ERROR replies
- Remove a stale comment

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: <stable@kernel.vger.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2020-06-22 09:34:35 -04:00
..
Makefile
backchannel.c
frwr_ops.c xprtrdma: Clean up synopsis of rpcrdma_flush_disconnect() 2020-06-22 09:34:35 -04:00
module.c
rpc_rdma.c xprtrdma: Fix handling of RDMA_ERROR replies 2020-06-22 09:34:35 -04:00
svc_rdma.c
svc_rdma_backchannel.c
svc_rdma_recvfrom.c
svc_rdma_rw.c
svc_rdma_sendto.c
svc_rdma_transport.c
transport.c xprtrdma: Use re_connect_status safely in rpcrdma_xprt_connect() 2020-06-22 09:34:35 -04:00
verbs.c xprtrdma: Clean up disconnect 2020-06-22 09:34:35 -04:00
xprt_rdma.h xprtrdma: Clean up disconnect 2020-06-22 09:34:35 -04:00