Chuck Lever
de1d70dad6
xprtrdma: Fix handling of RDMA_ERROR replies
...
commit 7b2182ec381f8ea15c7eb1266d6b5d7da620ad93 upstream.
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 <[email protected] >
Cc: <[email protected] >
Signed-off-by: Anna Schumaker <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-06-30 15:37:12 -04:00
..
auth_gss
sunrpc: clean up properly in gss_mech_unregister()
2020-06-22 09:31:24 +02:00
xprtrdma
xprtrdma: Fix handling of RDMA_ERROR replies
2020-06-30 15:37:12 -04:00
addr.c
net: sunrpc: Fix off-by-one issues in 'rpc_ntop6'
2020-06-24 17:50:35 +02:00
auth.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
auth_null.c
auth_unix.c
SUNRPC: Use the client user namespace when encoding creds
2019-04-26 16:24:32 -04:00
backchannel_rqst.c
SUNRPC: Destroy the back channel when we destroy the host transport
2019-10-30 12:04:35 -04:00
cache.c
sunrpc: Fix potential leaks in sunrpc_cache_unhash()
2020-02-24 08:36:55 +01:00
clnt.c
SUNRPC: Signalled ASYNC tasks need to exit
2020-05-20 08:20:24 +02:00
debugfs.c
NFS client updates for Linux 5.3
2019-07-18 14:32:33 -07:00
Kconfig
SUNRPC: Drop redundant CONFIG_ from CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES
2019-07-06 14:54:53 -04:00
Makefile
netns.h
rpc_pipe.c
sunrpc: fixed rollback in rpc_gssd_dummy_populate()
2020-06-30 15:37:11 -04:00
rpcb_clnt.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
sched.c
SUNRPC: Avoid RPC delays when exiting suspend
2019-12-13 08:42:34 +01:00
socklib.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
stats.c
Merge branch 'multipath_tcp'
2019-07-06 14:54:52 -04:00
sunrpc.h
sunrpc_syms.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
svc.c
sunrpc: clean up indentation issue
2019-09-25 11:13:12 -04:00
svc_xprt.c
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
2020-05-02 08:48:48 +02:00
svcauth.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
svcauth_unix.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
svcsock.c
svcrdma: Fix leak of svc_rdma_recv_ctxt objects
2020-05-02 08:48:48 +02:00
sysctl.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
timer.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
xdr.c
SUNRPC: Properly set the @subbuf parameter of xdr_buf_subsegment()
2020-06-30 15:37:12 -04:00
xprt.c
SUNRPC: Destroy the back channel when we destroy the host transport
2019-10-30 12:04:35 -04:00
xprtmultipath.c
SUNRPC: Optimise transport balancing code
2019-07-18 14:43:52 -04:00
xprtsock.c
SUNRPC: Fix backchannel RPC soft lockups
2020-04-29 16:33:18 +02:00