libata fix
PATCH 1/1 libata fix
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus
to receive the following updates:
drivers/ata/libata-eh.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
Tejun Heo (1):
libata: retry FS IOs even if it has failed with AC_ERR_INVALID
drivers/ata/libata-eh.c +3 -2
@@ -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 */