diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2014-09-23 12:26:19 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-24 23:06:56 -0400 |
commit | a743419f420a64d442280845c0377a915b76644f (patch) | |
tree | 76ba4188ac3dd3476ef44648fabebcf1ca6febfe /include/linux/sunrpc | |
parent | 8faaa6d5d48b201527e0451296d9e71d23afb362 (diff) | |
download | linux-stable-a743419f420a64d442280845c0377a915b76644f.tar.gz linux-stable-a743419f420a64d442280845c0377a915b76644f.tar.bz2 linux-stable-a743419f420a64d442280845c0377a915b76644f.zip |
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index fcbfe8783243..cf391eef2e6d 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -357,6 +357,7 @@ int xs_swapper(struct rpc_xprt *xprt, int enable); #define XPRT_CONNECTION_ABORT (7) #define XPRT_CONNECTION_CLOSE (8) #define XPRT_CONGESTED (9) +#define XPRT_CONNECTION_REUSE (10) static inline void xprt_set_connected(struct rpc_xprt *xprt) { |