SUNRPC: Ignore queue transmission errors on successful transmission
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 15 Apr 2019 15:54:13 +0000 (11:54 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 17 Apr 2019 20:07:28 +0000 (16:07 -0400)
commita7b1a4839ff979b4dd4fb6c1ccd31af11de9ca87
tree48222176f78e8c189f43cf9d106adcf8183d75fc
parentdc4060a5dc2557e6b5aa813bf5b73677299d62d2
SUNRPC: Ignore queue transmission errors on successful transmission

If a request transmission fails due to write space or slot unavailability
errors, but the queued task then gets transmitted before it has time to
process the error in call_transmit_status() or call_bc_transmit_status(),
we need to suppress the transmission error code to prevent it from leaking
out of the RPC layer.

Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/clnt.c