Mike Christie
8368b993f3
scsi: iscsi: Unblock session then wake up error handler
...
[ Upstream commit a0c2f8b6709a9a4af175497ca65f93804f57b248 ]
We can race where iscsi_session_recovery_timedout() has woken up the error
handler thread and it's now setting the devices to offline, and
session_recovery_timedout()'s call to scsi_target_unblock() is also trying
to set the device's state to transport-offline. We can then get a mix of
states.
For the case where we can't relogin we want the devices to be in
transport-offline so when we have repaired the connection
__iscsi_unblock_session() can set the state back to running.
Set the device state then call into libiscsi to wake up the error handler.
Link: https://lore.kernel.org/r/20211105221048.6541-2-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-08 08:50:12 +01:00
..
2020-10-01 13:14:42 +02:00
2021-07-28 11:13:44 +02:00
2021-07-28 11:13:44 +02:00
2019-11-24 08:20:59 +01:00
2020-08-19 08:14:55 +02:00
2021-07-20 16:16:15 +02:00
2020-01-14 20:07:06 +01:00
2021-06-16 11:54:57 +02:00
2021-07-20 16:16:08 +02:00
2021-11-26 11:36:13 +01:00
2021-07-20 16:16:08 +02:00
2020-10-01 13:14:45 +02:00
2021-08-26 08:36:44 -04:00
2020-01-23 08:21:38 +01:00
2020-09-03 11:24:22 +02:00
2020-12-30 11:26:01 +01:00
2021-07-28 11:13:44 +02:00
2021-05-22 10:59:34 +02:00
2018-09-17 02:50:37 -04:00
2021-07-28 11:13:44 +02:00
2021-07-28 11:13:44 +02:00
2021-07-28 11:13:44 +02:00
2021-11-26 11:36:19 +01:00
2021-08-26 08:36:44 -04:00
2021-12-01 09:27:42 +01:00
2021-07-28 11:13:44 +02:00
2018-08-21 23:54:17 -04:00
2018-03-19 22:54:47 -04:00
2021-07-28 11:13:44 +02:00
2020-06-25 15:32:53 +02:00
2021-09-22 11:48:01 +02:00
2021-11-26 11:36:15 +01:00
2020-10-29 09:55:07 +01:00
2020-04-29 16:31:16 +02:00
2018-07-12 23:01:16 -04:00
2019-11-20 18:46:29 +01:00
2021-05-26 11:48:35 +02:00
2017-10-25 05:40:22 -04:00
2018-07-30 23:17:53 -04:00
2017-12-04 20:32:53 -05:00
2018-07-30 23:17:53 -04:00
2018-07-30 23:17:53 -04:00
2019-03-13 14:02:31 -07:00
2017-11-02 11:10:55 +01:00
2018-07-30 23:17:53 -04:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2021-11-26 11:36:20 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-05-01 23:29:41 -04:00
2020-01-04 19:12:56 +01:00
2018-07-30 23:17:53 -04:00
2017-11-02 11:10:55 +01:00
2021-09-22 11:48:09 +02:00
2021-06-03 08:38:10 +02:00
2019-10-29 09:19:50 +01:00
2017-11-02 11:10:55 +01:00
2021-11-26 11:36:12 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-05-18 12:03:51 -04:00
2018-03-15 00:25:37 -04:00
2018-11-13 11:08:32 -08:00
2018-11-13 11:08:32 -08:00
2021-07-20 16:15:55 +02:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2021-10-27 09:53:15 +02:00
2019-07-10 09:53:37 +02:00
2020-11-18 19:18:44 +01:00
2018-07-10 22:25:03 -04:00
2017-08-25 17:21:10 -04:00
2018-06-26 12:27:07 -04:00
2017-11-02 11:10:55 +01:00
2020-04-02 15:28:15 +02:00
2020-04-02 15:28:15 +02:00
2019-12-01 09:16:26 +01:00
2018-04-20 19:40:17 -04:00
2020-06-25 15:33:01 +02:00
2020-02-24 08:34:48 +01:00
2021-05-22 10:59:33 +02:00
2020-07-22 09:32:04 +02:00
2018-06-19 22:02:25 -04:00
2021-07-20 16:16:08 +02:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:08:32 -08:00
2020-01-04 19:12:56 +01:00
2018-08-15 22:06:26 -07:00
2019-10-29 09:19:29 +01:00
2018-06-19 22:02:25 -04:00
2020-08-19 08:14:59 +02:00
2017-11-02 11:10:55 +01:00
2018-03-19 22:54:47 -04:00
2017-11-02 11:10:55 +01:00
2020-10-30 10:38:28 +01:00
2018-07-10 22:42:47 -04:00
2020-01-04 19:13:04 +01:00
2019-11-20 18:47:49 +01:00
2018-06-19 22:02:25 -04:00
2017-10-16 22:38:44 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2018-02-13 21:49:15 -05:00
2017-12-04 20:32:52 -05:00
2017-11-02 11:10:55 +01:00
2017-10-05 15:01:17 +02:00
2017-10-05 15:01:17 +02:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-06-26 12:53:26 -04:00
2017-11-02 11:10:55 +01:00
2018-12-19 19:19:49 +01:00
2017-12-11 21:39:39 -05:00
2020-08-19 08:14:57 +02:00
2018-04-20 19:14:28 -04:00
2021-06-30 08:48:12 -04:00
2019-05-08 07:21:49 +02:00
2019-10-29 09:19:49 +01:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2021-07-20 16:15:38 +02:00
2019-10-07 18:57:04 +02:00
2017-11-14 16:23:44 -08:00
2019-01-22 21:40:32 +01:00
2017-12-07 21:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-08-26 08:36:44 -04:00
2021-11-06 13:58:45 +01:00
2020-01-23 08:21:38 +01:00
2017-11-02 11:10:55 +01:00
2018-08-15 22:06:26 -07:00
2021-12-08 08:50:12 +01:00
2018-06-10 13:01:12 -07:00
2021-01-12 20:10:16 +01:00
2021-04-28 13:16:49 +02:00
2021-11-06 13:58:45 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-07-30 08:27:02 -06:00
2018-08-15 22:06:26 -07:00
2021-10-09 14:11:03 +02:00
2018-07-30 08:27:02 -06:00
2017-11-02 11:10:55 +01:00
2021-10-17 10:19:49 +02:00
2020-05-20 08:18:34 +02:00
2017-08-25 17:21:10 -04:00
2021-05-22 10:59:34 +02:00
2018-08-02 15:22:13 -06:00
2020-07-22 09:32:04 +02:00
2021-08-12 13:19:39 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-04-07 12:48:48 +02:00
2017-11-02 11:10:55 +01:00
2019-05-08 07:21:49 +02:00
2020-01-04 19:12:56 +01:00
2021-05-22 10:59:34 +02:00
2021-10-17 10:19:49 +02:00
2021-06-16 11:54:57 +02:00
2017-08-25 17:21:10 -04:00
2018-05-01 23:30:12 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 14:54:41 +02:00
2019-12-17 20:36:03 +01:00