SUNRPC: Don't wake tasks during connection abort
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 23 Sep 2014 16:26:19 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:44 +0000 (08:59 -0800)
commitdfea18f7c739d8fdb99cb140ad59f8bd0f39390d
tree0fc6b69c1fe81503909b9cb7b466c195bf16f70f
parentee8ed383b5d7b7fa39d8925ac82d23aa5581ce09
SUNRPC: Don't wake tasks during connection abort

commit a743419f420a64d442280845c0377a915b76644f upstream.

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>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sunrpc/xprt.h
net/sunrpc/xprtsock.c