diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-21 07:42:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-21 07:42:59 -0800 |
commit | 836f48c5f8c6ef004419f1605514aa05eb58eefb (patch) | |
tree | ca9d806077e709252c0f33532a55595275b11637 | |
parent | bdeef61cd053b6a88be7d2c82fd43e12f8c9f75e (diff) | |
parent | 534ead709235b967b659947c55d9130873a432c4 (diff) | |
download | linux-3.10-836f48c5f8c6ef004419f1605514aa05eb58eefb.tar.gz linux-3.10-836f48c5f8c6ef004419f1605514aa05eb58eefb.tar.bz2 linux-3.10-836f48c5f8c6ef004419f1605514aa05eb58eefb.zip |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
libata: retry FS IOs even if it has failed with AC_ERR_INVALID
-rw-r--r-- | drivers/ata/libata-eh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 0ea97c942ce..9f6cfac0f2c 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -2028,8 +2028,9 @@ static void ata_eh_link_autopsy(struct ata_link *link) qc->err_mask &= ~(AC_ERR_DEV | AC_ERR_OTHER); /* determine whether the command is worth retrying */ - if (!(qc->err_mask & AC_ERR_INVALID) && - ((qc->flags & ATA_QCFLAG_IO) || qc->err_mask != AC_ERR_DEV)) + if (qc->flags & ATA_QCFLAG_IO || + (!(qc->err_mask & AC_ERR_INVALID) && + qc->err_mask != AC_ERR_DEV)) qc->flags |= ATA_QCFLAG_RETRY; /* accumulate error info */ |