commit | 233ba13db681749b9a02e3c6179efea5e364bb04 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Mon Dec 17 17:38:51 2018 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Jan 13 09:51:01 2019 +0100 |
tree | 2504aec774067f095e0ade8aaf000db65eef6257 | |
parent | 4f784484bd96937dd86c41ec06cdac4f86c5300b [diff] |
SUNRPC: Fix a race with XPRT_CONNECTING [ Upstream commit cf76785d30712d90185455e752337acdb53d2a5d ] Ensure that we clear XPRT_CONNECTING before releasing the XPRT_LOCK so that we don't have races between the (asynchronous) socket setup code and tasks in xprt_connect(). Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Tested-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>