Re: [PATCH] ata: libata-eh: Do not retry reset if the device is gone

Damien Le Moal
2026-04-02T05:26:03Z

On 2026/04/02 10:11, Igor Pylypiv wrote:
> If a device is hot-unplugged or otherwise disappears during error handling,
> ata_eh_reset() may fail with -ENODEV. Currently, the error handler will
> continue to retry the reset operation up to max_tries times.
>
> Prevent unnecessary reset retries by exiting the loop early when
> ata_eh_reset() returns -ENODEV.
>
> Signed-off-by: Igor Pylypiv <ipylypiv@google.com>

Looks good.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>

--
Damien Le Moal
Western Digital Research