1
0
Fork 0

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>
wifi-calibration
Tejun Heo 2007-09-23 13:14:13 +09:00 committed by Jeff Garzik
parent f9df58cb27
commit 668108d73b
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {