diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-23 17:50:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 10:02:57 -0700 |
commit | 6c6dff65535906e5a7a27010447fad0cb316a1fb (patch) | |
tree | 383516af7652bf48e222a636301df98acd90acbf /net/sunrpc/bc_svc.c | |
parent | dedf1c2d17cd81796fc25190fd194e8dd0269817 (diff) |
SUNRPC: Prevent races in xs_abort_connection()
commit 4bc1e68ed6a8b59be8a79eb719be515a55c7bc68 upstream.
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>
Tested-by: Chris Perl <chris.perl@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sunrpc/bc_svc.c')
0 files changed, 0 insertions, 0 deletions