]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix RPC receive hangs
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 4 Dec 2018 12:52:11 +0000 (07:52 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Dec 2018 12:10:06 +0000 (07:10 -0500)
commit0eb3360e40b1b693f7d53b1d546a8068e76914fb
tree0d66728dfa1f6c85bcffb69456c838788c515bfe
parent5cc8d56ae5ac5bfbbd67f95a230e4821c165b285
SUNRPC: Fix RPC receive hangs

The RPC code is occasionally hanging when the receive code fails to
empty the socket buffer due to a partial read of the data. When we
convert that to an EAGAIN, it appears we occasionally leave data in the
socket. The fix is to just keep reading until the socket returns
EAGAIN/EWOULDBLOCK.

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Cristian Marussi <cristian.marussi@arm.com>
Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
net/sunrpc/xprtsock.c