All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sym2: Use ORDERED_QUEUE_TAG when barrier request is issued
@ 2006-02-13 16:10 Hifumi Hisashi
  2006-02-13 20:29 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: Hifumi Hisashi @ 2006-02-13 16:10 UTC (permalink / raw)
  To: matthew; +Cc: linux-scsi

Hi.
I think using ORDERED_QUEUE_TAG is preferable instead of
SIMPLE_QUEUE_TAG when a request with barrier flag is
issued.

Thanks.

Signed-off-by: Hifumi Hisashi <hifumi.hisashi@lab.ntt.co.jp>

--- linux-2.6.16-rc3/drivers/scsi/sym53c8xx_2/sym_hipd.c	2006-02-13 
14:04:02.000000000 +0900
+++ linux-2.6.16-rc3_fix/drivers/scsi/sym53c8xx_2/sym_hipd.c	2006-02-13 
14:36:47.000000000 +0900
@@ -41,6 +41,7 @@
  #include <linux/slab.h>
  #include <asm/param.h>		/* for timeouts in units of HZ */
  #include <scsi/scsi_dbg.h>
+#include <scsi/scsi_tcq.h>

  #include "sym_glue.h"
  #include "sym_nvram.h"
@@ -5109,6 +5110,9 @@
  			lp->tags_since = 0;
  		}
  #endif
+		if (cmd->request && cmd->request->flags & REQ_HARDBARRIER)
+                        order = M_ORDERED_TAG;
+
  		msgptr[msglen++] = order;

  		/* 


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

end of thread, other threads:[~2006-02-13 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-13 16:10 [PATCH] sym2: Use ORDERED_QUEUE_TAG when barrier request is issued Hifumi Hisashi
2006-02-13 20:29 ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.