[PATCH] sym2: Use ORDERED_QUEUE_TAG when barrier request is issued

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>

--- 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;

/*
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux