Files
linux/net
Trond Myklebust ce25cf818f SUNRPC: Fix a potential race in xprt_connect()
[ Upstream commit 0a9a4304f3 ]

If an asynchronous connection attempt completes while another task is
in xprt_connect(), then the call to rpc_sleep_on() could end up
racing with the call to xprt_wake_pending_tasks().
So add a second test of the connection state after we've put the
task to sleep and set the XPRT_CONNECTING flag, when we know that there
can be no asynchronous connection attempts still in progress.

Fixes: 0b9e794313 ("SUNRPC: Move the test for XPRT_CONNECTING into...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-15 10:36:58 +09:00
..
2015-03-02 16:43:41 -05:00
2018-05-16 10:08:44 +02:00
2018-04-13 19:48:29 +02:00
2023-05-15 10:30:55 +09:00
2016-05-29 22:33:25 -07:00
2023-05-15 09:57:35 +09:00
2016-10-20 11:23:08 -04:00
2018-05-16 11:39:34 +02:00
2016-08-17 19:36:23 -04:00
2023-05-15 09:14:58 +09:00