Skip to content
Commit 2a9e1cfa authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Respond promptly to server TCP resets



If the server sends us an RST error while we're in the TCP_ESTABLISHED
state, then that will not result in a state change, and so the RPC client
ends up hanging forever (see
http://bugzilla.kernel.org/show_bug.cgi?id=11154)

We can intercept the reset by setting up an sk->sk_error_report callback,
which will then allow us to initiate a proper shutdown and retry...

We also make sure that if the send request receives an ECONNRESET, then we
shutdown too...

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent e946217e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment