From: Trond Myklebust Date: Tue, 28 Oct 2008 19:21:39 +0000 (-0400) Subject: SUNRPC: Respond promptly to server TCP resets X-Git-Tag: v2.6.28-rc3~38^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9e1cfa23fb62da37739af81127dab5af095d99;p=pandora-kernel.git 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: Trond Myklebust --- Reading git-diff-tree failed