Trond Myklebust
20595815b0
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 >
2018-12-21 14:15:17 +01:00
..
2018-07-06 12:32:12 +02:00
2018-11-21 09:19:12 +01:00
2018-07-24 14:10:43 -07:00
2018-06-28 10:40:47 -07:00
2018-11-04 14:50:51 +01:00
2018-07-24 14:10:42 -07:00
2018-12-13 09:16:10 +01:00
2018-09-26 12:39:32 +03:00
2018-08-03 00:47:32 +02:00
2018-10-17 22:03:40 -07:00
2018-11-04 14:50:54 +01:00
2018-11-04 14:50:51 +01:00
2018-12-01 09:37:30 +01:00
2018-11-27 16:13:11 +01:00
2018-12-17 09:24:29 +01:00
2018-07-27 13:17:50 -07:00
2018-11-04 14:50:51 +01:00
2018-08-09 14:11:24 -07:00
2018-07-24 14:10:43 -07:00
2018-08-27 15:24:33 -07:00
2018-06-26 11:33:04 +09:00
2018-08-06 11:21:15 +02:00
2018-12-17 09:24:42 +01:00
2018-12-17 09:24:37 +01:00
2018-11-04 14:50:51 +01:00
2018-09-17 18:43:42 -07:00
2018-07-27 09:33:37 -07:00
2018-11-23 08:17:05 +01:00
2018-12-01 09:37:27 +01:00
2018-12-13 09:16:23 +01:00
2018-08-06 11:21:37 +02:00
2018-09-24 12:19:27 -07:00
2018-08-22 21:39:08 -07:00
2018-12-17 09:24:38 +01:00
2018-09-21 18:58:34 -07:00
2018-08-05 13:04:31 -07:00
2018-06-28 10:40:47 -07:00
2018-11-04 14:50:51 +01:00
2018-07-12 16:55:29 -07:00
2018-11-04 14:50:52 +01:00
2018-12-05 19:31:58 +01:00
2018-06-28 10:40:47 -07:00
2018-07-05 20:20:03 +09:00
2018-10-10 22:19:52 -07:00
2018-09-03 22:12:02 -07:00
2018-06-28 10:40:47 -07:00
2018-11-23 08:17:07 +01:00
2018-12-17 09:24:27 +01:00
2018-12-17 09:24:28 +01:00
2018-11-04 14:50:52 +01:00
2018-08-01 10:00:06 -07:00
2018-12-21 14:15:17 +01:00
2018-12-08 12:59:10 +01:00
2018-09-17 08:03:09 -07:00
2018-11-04 14:50:51 +01:00
2018-08-07 12:39:13 -07:00
2018-07-24 14:10:42 -07:00
2018-12-13 09:16:22 +01:00
2018-07-24 14:10:42 -07:00
2018-10-11 10:19:01 +02:00
2018-10-11 13:24:46 +02:00
2018-08-06 10:42:48 -07:00
2018-07-24 14:10:43 -07:00
2018-06-28 13:36:39 +09:00
2018-10-18 16:43:06 -07:00