Skip to content

Commit 1eaca39

Browse files
Bian YuJeff Garzik
authored andcommitted
[libata] ahci: Fix lack of command retry after a success error handler.
It should be a mistake introduced by commit 8d899e7. qc->flags can't be set AC_ERR_* Signed-off-by: Bian Yu <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent b719f43 commit 1eaca39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-eh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ static unsigned int ata_eh_speed_down(struct ata_device *dev,
20942094
*/
20952095
static inline int ata_eh_worth_retry(struct ata_queued_cmd *qc)
20962096
{
2097-
if (qc->flags & AC_ERR_MEDIA)
2097+
if (qc->err_mask & AC_ERR_MEDIA)
20982098
return 0; /* don't retry media errors */
20992099
if (qc->flags & ATA_QCFLAG_IO)
21002100
return 1; /* otherwise retry anything from fs stack */

0 commit comments

Comments
 (0)