Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 668108d7 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

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: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent f9df58cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {