linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] libata: flush is an IO command
@ 2007-10-26  6:53 Tejun Heo
  2007-10-26  7:12 ` [PATCH 2/3] libata: stop being overjealous about non-IO commands Tejun Heo
  2007-10-30 13:32 ` [PATCH 1/3] libata: flush is an IO command Jeff Garzik
  0 siblings, 2 replies; 5+ messages in thread
From: Tejun Heo @ 2007-10-26  6:53 UTC (permalink / raw)
  To: Jeff Garzik, linux-ide; +Cc: ballen

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>
---
 drivers/ata/libata-scsi.c |    3 +++
 1 file changed, 3 insertions(+)

Index: work/drivers/ata/libata-scsi.c
===================================================================
--- work.orig/drivers/ata/libata-scsi.c
+++ work/drivers/ata/libata-scsi.c
@@ -1040,6 +1040,9 @@ static unsigned int ata_scsi_flush_xlat(
 	else
 		tf->command = ATA_CMD_FLUSH;
 
+	/* flush is critical for IO integrity, consider it an IO command */
+	qc->flags |= ATA_QCFLAG_IO;
+
 	return 0;
 }
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-30 13:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26  6:53 [PATCH 1/3] libata: flush is an IO command Tejun Heo
2007-10-26  7:12 ` [PATCH 2/3] libata: stop being overjealous about non-IO commands Tejun Heo
2007-10-26  7:19   ` [PATCH 3/3] libata: implement and use ATA_QCFLAG_QUIET Tejun Heo
2007-10-30 13:32 ` [PATCH 1/3] libata: flush is an IO command Jeff Garzik
2007-10-30 13:52   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).