diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-09-16 23:43:17 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-09-17 18:01:28 -0400 |
commit | 0fdea1e8a2853f79d39b8555cc9de16a7e0ab26f (patch) | |
tree | 5bc1719c4ba7a0d2cd7e79b07de7d5c0800a99a5 /fs | |
parent | 17a9618e984234fda167ea5e07eae6f4f2ea2186 (diff) | |
download | linux-0fdea1e8a2853f79d39b8555cc9de16a7e0ab26f.tar.bz2 |
SUNRPC: Ensure that we wait for connections to complete before retrying
Commit 718ba5b87343, moved the responsibility for unlocking the socket to
xs_tcp_setup_socket, meaning that the socket will be unlocked before we
know that it has finished trying to connect. The following patch is based on
an initial patch by Russell King to ensure that we delay clearing the
XPRT_CONNECTING flag until we either know that we failed to initiate
a connection attempt, or the connection attempt itself failed.
Fixes: 718ba5b87343 ("SUNRPC: Add helpers to prevent socket create from racing")
Reported-by: Russell King <linux@arm.linux.org.uk>
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions