Skip to content

Commit b666da3

Browse files
htejunJeff Garzik
authored and
Jeff Garzik
committed
libata: flush is an IO command
ATA_QCFLAG_IO is used to mark commands which are used to perform regluar IO transfers via block layer. These commands are assumed to be valid and taken more seriously during error handling. Cache flush is used by regular IO path and necessary for data integrity. Mark it with ATA_QCFLAG_IO. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent 5595ddf commit b666da3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ata/libata-scsi.c

+3
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,9 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc)
11081108
else
11091109
tf->command = ATA_CMD_FLUSH;
11101110

1111+
/* flush is critical for IO integrity, consider it an IO command */
1112+
qc->flags |= ATA_QCFLAG_IO;
1113+
11111114
return 0;
11121115
}
11131116

0 commit comments

Comments
 (0)