diff options
author | Tejun Heo <htejun@gmail.com> | 2007-10-26 02:53:59 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-30 09:59:42 -0400 |
commit | b666da35d900c26cbea1caa465649e2e0afa406c (patch) | |
tree | c1636d741569fd9fcf39557e36210226e9d5d860 | |
parent | 5595ddf98cb3bf2c18b3b96587a1a9b0b08c267a (diff) |
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>
-rw-r--r-- | drivers/ata/libata-scsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 93bd36c19690..6ef5ecb917ce 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -1108,6 +1108,9 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc) | |||
1108 | else | 1108 | else |
1109 | tf->command = ATA_CMD_FLUSH; | 1109 | tf->command = ATA_CMD_FLUSH; |
1110 | 1110 | ||
1111 | /* flush is critical for IO integrity, consider it an IO command */ | ||
1112 | qc->flags |= ATA_QCFLAG_IO; | ||
1113 | |||
1111 | return 0; | 1114 | return 0; |
1112 | } | 1115 | } |
1113 | 1116 | ||