From: Trond Myklebust Date: Tue, 23 Oct 2012 21:50:07 +0000 (-0400) Subject: SUNRPC: Prevent races in xs_abort_connection() X-Git-Tag: v3.7-rc3~23^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc1e68ed6a8b59be8a79eb719be515a55c7bc68;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org Tested-by: Chris Perl --- Reading git-diff-tree failed