Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=668108d73bbb1ae85f01db38d6be822fd28ece1f
Commit:     668108d73bbb1ae85f01db38d6be822fd28ece1f
Parent:     f9df58cb27dfd605eced643bb3aa599fe4feeee8
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 23 13:14:13 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:41 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/libata-eh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index fbbf791..3c31e10 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -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)) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to