Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eaca39a authored by Bian Yu's avatar Bian Yu Committed by Jeff Garzik
Browse files

[libata] ahci: Fix lack of command retry after a success error handler.



It should be a mistake introduced by commit 8d899e70.

qc->flags can't be set AC_ERR_*

Signed-off-by: default avatarBian Yu <bianyu@kedacom.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent b719f430
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2094,7 +2094,7 @@ static unsigned int ata_eh_speed_down(struct ata_device *dev,
 */
static inline int ata_eh_worth_retry(struct ata_queued_cmd *qc)
{
	if (qc->flags & AC_ERR_MEDIA)
	if (qc->err_mask & AC_ERR_MEDIA)
		return 0;	/* don't retry media errors */
	if (qc->flags & ATA_QCFLAG_IO)
		return 1;	/* otherwise retry anything from fs stack */