Re: [PATCH v2] ata: libata-eh: Do not retry reset if the device is gone
From: Niklas Cassel
Date: Thu Apr 02 2026 - 14:22:12 EST
On Thu, 02 Apr 2026 09:07:05 -0700, 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_do_reset() returns -ENODEV.
>
> [...]
Applied to libata/linux.git (for-7.1), thanks!
[1/1] ata: libata-eh: Do not retry reset if the device is gone
https://git.kernel.org/libata/linux/c/182caa17
Kind regards,
Niklas