diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-10-30 15:42:39 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-11-04 22:33:44 -0500 |
| commit | c14818f4d2b46a67fa0d2fd8fd5ef3532245f07a (patch) | |
| tree | 12c263f7829aa816bf63c37116a45ee3a6cd84bd /scripts/Makefile.thinlto | |
| parent | 49da33f609929db6f6c3b8567d0e0cca6f9ae182 (diff) | |
| download | linux-next-c14818f4d2b46a67fa0d2fd8fd5ef3532245f07a.tar.gz linux-next-c14818f4d2b46a67fa0d2fd8fd5ef3532245f07a.zip | |
scsi: core: Limit retries of commands that receive UNIT ATTENTION
Fail non-removable commands in scsi_io_completion_action() on UNIT
ATTENTION if retries exceed max(cmd->allowed, 3). This bounds the number
of retries of commands for which scsi_decide_disposition() exhausted the
retries or that have been finished by the error handler, e.g. because a
target keeps reporting UNIT ATTENTION after recovery. Since
scmd->retries is not incremented for failfast commands on this code
path, failfast commands are retried until the command runtime limit is
exceeded, as before.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Alexey Charkov <alchark@flipper.net>
Link: https://patch.msgid.link/959f1c7628af83cd184ac51f35e38d654b261069.1793400000.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
