diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-10-30 15:42:37 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-11-04 22:33:43 -0500 |
| commit | d54e68b5c31cbfb108c1f22ec21bdf43c5133e0e (patch) | |
| tree | 109576c52ae369f5af70e58e88f8f0a6bfdcaf2b /scripts/Makefile.thinlto | |
| parent | 099fb3376bb73c29457782d917a3b68d846a9e87 (diff) | |
| download | linux-next-d54e68b5c31cbfb108c1f22ec21bdf43c5133e0e.tar.gz linux-next-d54e68b5c31cbfb108c1f22ec21bdf43c5133e0e.zip | |
scsi: core: Clear UNIT ATTENTION conditions with TEST UNIT READY
Some targets, e.g. BIWIN BWU2A05* UFS devices, fail to clear power-on or
reset UNIT ATTENTION conditions on WRITE commands while clearing these
on commands like TEST UNIT READY, READ, and SYNCHRONIZE CACHE.
Add scsi_eh_clear_ua() to scsi_eh_ready_devs() ahead of device reset so
that the error handler sends TEST UNIT READY to consume a stuck UNIT
ATTENTION and verifies with a follow-up TEST UNIT READY that the
condition cleared before requeueing affected commands. Allow a few
additional TEST UNIT READY attempts for queued UNIT ATTENTION conditions
and busy devices, delay retries, and honor the error handler
deadline. Save and restore scmd->sense_buffer across scsi_send_eh_cmnd()
so that the original sense data remains intact while filtering work_q
and if retries are later exhausted. Log a rate-limited message when a
persistent UNIT ATTENTION is cleared to make it possible to identify
misbehaving devices.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/444e78b0fa892e8854bee89f341824d67000d968.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
