]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Use the ENOTCONN error on socket disconnect
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 12:01:16 +0000 (08:01 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 17:08:20 +0000 (13:08 -0400)
commit7fa5d78ce0f14459e4dbd564b7d7e2405a306e19
tree35031bb75174bf9b656fff6e1d8f91988b5060a0
parent5c0cbc26e3d79e85ca15f37e18d215663c700d98
SUNRPC: Use the ENOTCONN error on socket disconnect

When the socket is closed, we currently send an EAGAIN error to all
pending requests in order to ask them to retransmit. Use ENOTCONN
instead, to ensure that they try to reconnect before attempting to
transmit.
This also helps SOFTCONN tasks to behave correctly in this
situation.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprt.c