Niklas Cassel
5122e53ee7
ata: libata-core: do not retry reading the log on timeout
...
ata_read_log_page() first tries to read the log using READ LOG DMA EXT.
If that fails it will instead try to read the log using READ LOG EXT.
ata_exec_internal_sg() is synchronous, so it will wait for the command to
finish. If we actually got an error back from the device, it is correct
to retry. However, if the command timed out, ata_exec_internal_sg() will
freeze the port.
There is no point in retrying if the port is frozen, as
ata_exec_internal_sg() will return AC_ERR_SYSTEM on a frozen port,
without ever sending the command down to the drive.
Therefore, avoid retrying if the first command froze the port, as that
will result in a misleading AC_ERR_SYSTEM error print, instead of printing
the error that actually caused the port to be frozen (AC_ERR_TIMEOUT).
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com >
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com >
2022-10-19 13:46:08 +09:00
..
2022-02-20 09:06:05 +09:00
2022-05-09 20:36:00 +09:00
2022-03-07 11:49:10 +09:00
2022-09-17 01:39:22 +09:00
2022-09-17 01:39:22 +09:00
2022-09-17 01:40:31 +09:00
2022-08-17 14:09:38 +02:00
2022-09-17 01:39:30 +09:00
2022-03-28 12:27:35 -07:00
2022-03-07 11:49:10 +09:00
2022-09-17 01:40:15 +09:00
2022-03-07 11:49:10 +09:00
2019-06-19 17:09:07 +02:00
2022-09-20 08:43:07 +09:00
2022-03-07 11:49:10 +09:00
2021-04-11 20:35:08 -06:00
2022-03-07 11:49:10 +09:00
2022-09-17 01:39:54 +09:00
2022-09-17 01:40:02 +09:00
2021-03-30 20:21:26 -06:00
2022-02-19 11:18:35 +09:00
2022-10-18 08:05:10 +09:00
2022-09-17 01:40:11 +09:00
2022-10-18 13:53:27 +09:00
2022-10-18 13:53:27 +09:00
2022-10-19 13:46:08 +09:00
2022-10-18 13:53:27 +09:00
2020-03-26 10:28:19 -06:00
2022-01-05 19:33:01 +09:00
2022-10-18 13:53:27 +09:00
2022-10-18 13:53:27 +09:00
2022-09-16 23:24:06 +09:00
2022-01-05 19:33:01 +09:00
2022-06-13 11:42:58 +09:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2022-10-17 11:31:52 +09:00
2022-09-17 01:40:15 +09:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +09:00
2022-02-19 11:18:35 +09:00
2022-02-19 11:18:42 +09:00
2022-01-31 09:58:32 +09:00
2022-01-05 19:33:02 +09:00
2018-03-01 13:59:03 -08:00
2019-08-23 06:58:50 -06:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:02 +09:00
2022-02-19 11:18:35 +09:00
2021-06-16 06:50:25 -06:00
2022-06-30 08:21:43 +09:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:03 +09:00
2019-05-21 10:50:45 +02:00
2022-02-20 09:06:05 +09:00
2021-11-29 20:28:13 +09:00
2022-10-18 08:05:10 +09:00
2018-03-19 07:41:36 -07:00
2022-06-17 16:35:02 +09:00
2019-08-26 13:58:59 -06:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +09:00
2021-01-31 08:05:46 -07:00
2022-02-19 11:18:35 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-05-21 10:50:45 +02:00
2022-03-07 11:49:10 +09:00
2021-03-12 07:28:31 -07:00
2021-10-12 09:52:35 +09:00
2022-09-16 23:24:06 +09:00
2022-04-22 08:45:06 +09:00
2022-10-17 11:38:15 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-06-06 09:52:17 +09:00
2022-03-07 11:49:10 +09:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:26 -06:00
2021-10-12 17:46:59 +09:00
2022-04-20 13:29:34 +02:00
2020-01-29 20:54:51 -07:00
2022-01-31 09:58:32 +09:00
2022-06-17 16:35:02 +09:00
2021-03-30 20:21:25 -06:00
2022-01-31 09:58:31 +09:00
2022-03-10 11:17:59 +09:00
2021-10-12 17:47:02 +09:00
2021-06-24 18:49:01 -06:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:03 +09:00
2022-02-20 09:06:05 +09:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:00 +02:00
2022-06-17 16:35:02 +09:00
2022-04-13 12:42:51 +09:00
2022-06-17 16:35:02 +09:00
2021-03-30 20:21:25 -06:00
2022-02-19 11:18:35 +09:00
2022-06-17 16:35:02 +09:00
2022-01-05 19:33:01 +09:00
2022-04-04 09:56:34 +09:00
2022-03-23 14:35:59 -07:00
2022-10-18 08:04:46 +09:00
2017-11-02 11:10:55 +01:00
2022-03-07 11:49:10 +09:00
2022-02-20 09:06:05 +09:00
2022-08-03 07:59:12 +09:00
2022-10-18 13:53:27 +09:00
2022-10-18 13:53:27 +09:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:02 +09:00
2022-03-07 11:49:10 +09:00
2022-01-04 20:00:57 +09:00
2022-01-05 19:33:02 +09:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-10-18 13:53:27 +09:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2022-02-20 09:06:05 +09:00
2017-11-02 11:10:55 +01:00