Skip to content
Commit 55420c24 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Ensure we close the socket on EPIPE errors too...



As long as one task is holding the socket lock, then calls to
xprt_force_disconnect(xprt) will not succeed in shutting down the socket.
In particular, this would mean that a server initiated shutdown will not
succeed until the lock is relinquished.
In order to avoid the deadlock, we should ensure that xs_tcp_send_request()
closes the socket on EPIPE errors too.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b61d59ff
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