]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't wake tasks during connection abort
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 23 Sep 2014 16:26:19 +0000 (12:26 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 25 Sep 2014 03:06:56 +0000 (23:06 -0400)
commita34077b282503f7a5acc9473d60652850a222a49
tree76ba4188ac3dd3476ef44648fabebcf1ca6febfe
parent6ebb395aa67f604a0728152cbfdd99c318dfa02a
SUNRPC: Don't wake tasks during connection abort

When aborting a connection to preserve source ports, don't wake the task in
xs_error_report.  This allows tasks with RPC_TASK_SOFTCONN to succeed if the
connection needs to be re-established since it preserves the task's status
instead of setting it to the status of the aborting kernel_connect().

This may also avoid a potential conflict on the socket's lock.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprtsock.c