SUNRPC: Force close the socket when a hard error is reported
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 17 Sep 2023 18:57:39 +0000 (14:57 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 22 Oct 2023 23:47:57 +0000 (19:47 -0400)
commitf663507e29ff061d3b6e5e8f3b75689ee9dc7214
treef5bf895d43147c62a169d5f8e30bdaae35ced6ff
parentcaa388f7e54ba4ec603f9aeb2705d75adbddea20
SUNRPC: Force close the socket when a hard error is reported

Fix up xs_wake_error() to close the socket when a hard error is being
reported. Usually, that means an ECONNRESET was received on a connection
attempt.

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