]> 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)
commitfc41293051b573eb4b90f122d6690bec0240a45f
tree0d66728dfa1f6c85bcffb69456c838788c515bfe
parent1c282641968c2b1fa6fb593d62f21a2ca6fb3f54
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