summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-23 23:50:07 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-24 16:46:08 +0200
commit4bc1e68ed6a8b59be8a79eb719be515a55c7bc68 (patch)
tree93a4b34c2759a52a1f57850c9f3719296beeee24 /arch
parentRevert "SUNRPC: Ensure we close the socket on EPIPE errors too..." (diff)
downloadlinux-4bc1e68ed6a8b59be8a79eb719be515a55c7bc68.tar.xz
linux-4bc1e68ed6a8b59be8a79eb719be515a55c7bc68.zip
SUNRPC: Prevent races in xs_abort_connection()
The call to xprt_disconnect_done() that is triggered by a successful connection reset will trigger another automatic wakeup of all tasks on the xprt->pending rpc_wait_queue. In particular it will cause an early wake up of the task that called xprt_connect(). All we really want to do here is clear all the socket-specific state flags, so we split that functionality out of xs_sock_mark_closed() into a helper that can be called by xs_abort_connection() Reported-by: Chris Perl <chris.perl@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org Tested-by: Chris Perl <chris.perl@gmail.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions