OSDN Git Service

SUNRPC: Fix a race with XPRT_CONNECTING
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 Dec 2018 22:38:51 +0000 (17:38 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 18 Dec 2018 16:04:03 +0000 (11:04 -0500)
commitcf76785d30712d90185455e752337acdb53d2a5d
treeadaba352f1495a9eaf95bba2fe5091ba0afbaf7e
parent0445f92c5d537c173a54446b80d2052145de5148
SUNRPC: Fix a race with XPRT_CONNECTING

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>
net/sunrpc/xprtsock.c