mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
libata-pmp-prep: implement EH fast-fail path
If PMP itself becomes inaccessible while trying to link a downstream link, spending time to recover the downstream link doesn't make any sense. Make EH skip retry and fail fast if -ERESTART is received. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
f9df58cb27
commit
668108d73b
@ -2050,7 +2050,7 @@ int ata_eh_reset(struct ata_link *link, int classify,
|
||||
if (rc == -EAGAIN)
|
||||
rc = 0;
|
||||
|
||||
if (rc && try < ARRAY_SIZE(ata_eh_reset_timeouts)) {
|
||||
if (rc && rc != -ERESTART && try < ARRAY_SIZE(ata_eh_reset_timeouts)) {
|
||||
unsigned long now = jiffies;
|
||||
|
||||
if (time_before(now, deadline)) {
|
||||
|
Loading…
Reference in New Issue
Block a user