mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[libata] ahci: Fix lack of command retry after a success error handler.
It should be a mistake introduced by commit 8d899e70c1.
qc->flags can't be set AC_ERR_*
Signed-off-by: Bian Yu <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
b719f43059
commit
1eaca39a84
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue