mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
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>
This commit is contained in:
parent
5595ddf98c
commit
b666da35d9
1 changed files with 3 additions and 0 deletions
|
@ -1108,6 +1108,9 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc)
|
||||||
else
|
else
|
||||||
tf->command = ATA_CMD_FLUSH;
|
tf->command = ATA_CMD_FLUSH;
|
||||||
|
|
||||||
|
/* flush is critical for IO integrity, consider it an IO command */
|
||||||
|
qc->flags |= ATA_QCFLAG_IO;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue