Files
Igor Pylypiv 282feedfb9 scsi: core: Do not retry I/Os during depopulation
BugLink: https://bugs.launchpad.net/bugs/2114239

commit 9ff7c383b8ac0c482a1da7989f703406d78445c6 upstream.

Fail I/Os instead of retry to prevent user space processes from being
blocked on the I/O completion for several minutes.

Retrying I/Os during "depopulation in progress" or "depopulation restore in
progress" results in a continuous retry loop until the depopulation
completes or until the I/O retry loop is aborted due to a timeout by the
scsi_cmd_runtime_exceeced().

Depopulation is slow and can take 24+ hours to complete on 20+ TB HDDs.
Most I/Os in the depopulation retry loop end up taking several minutes
before returning the failure to user space.

Cc: stable@vger.kernel.org # 4.18.x: 2bbeb8d scsi: core: Handle depopulation and restoration in progress
Cc: stable@vger.kernel.org # 4.18.x
Fixes: e37c7d9a03 ("scsi: core: sanitize++ in progress")
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Link: https://lore.kernel.org/r/20250131184408.859579-1-ipylypiv@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Noah Wager <noah.wager@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
2025-06-15 10:39:23 +03:00
..
2023-10-13 14:15:54 -04:00
2023-05-31 19:59:26 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2018-06-19 22:02:25 -04:00
2021-01-22 21:14:08 -05:00
2020-09-02 22:49:06 -04:00
2023-05-26 13:52:19 -07:00
2023-04-18 23:01:23 -04:00
2022-06-27 22:56:21 -04:00
2024-06-07 14:48:25 +02:00
2024-06-07 14:48:25 +02:00
2005-04-16 15:20:36 -07:00
2022-02-22 21:11:02 -05:00
2021-03-24 23:03:43 -04:00
2023-10-13 16:36:20 -04:00
2024-08-13 12:12:26 +02:00
2022-05-08 14:28:18 -04:00
2021-12-22 23:41:13 -05:00
2023-10-13 16:36:20 -04:00
2023-05-31 11:36:40 -04:00