|
@@ -5024,8 +5024,6 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
|
|
|
struct ata_device *dev = qc->dev;
|
|
|
struct ata_eh_info *ehi = &dev->link->eh_info;
|
|
|
|
|
|
- WARN_ON_ONCE(ap->pflags & ATA_PFLAG_FROZEN);
|
|
|
-
|
|
|
if (unlikely(qc->err_mask))
|
|
|
qc->flags |= ATA_QCFLAG_FAILED;
|
|
|
|
|
@@ -5038,6 +5036,8 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ WARN_ON_ONCE(ap->pflags & ATA_PFLAG_FROZEN);
|
|
|
+
|
|
|
/* read result TF if requested */
|
|
|
if (qc->flags & ATA_QCFLAG_RESULT_TF)
|
|
|
fill_result_tf(qc);
|