aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-eh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 866ac9d5530a..8aa61403303f 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2183,7 +2183,8 @@ int ata_eh_reset(struct ata_link *link, int classify,
2183 "(errno=%d), retrying in %u secs\n", 2183 "(errno=%d), retrying in %u secs\n",
2184 rc, (jiffies_to_msecs(delta) + 999) / 1000); 2184 rc, (jiffies_to_msecs(delta) + 999) / 1000);
2185 2185
2186 schedule_timeout_uninterruptible(delta); 2186 while (delta)
2187 delta = schedule_timeout_uninterruptible(delta);
2187 } 2188 }
2188 2189
2189 if (rc == -EPIPE || 2190 if (rc == -EPIPE ||