summaryrefslogtreecommitdiff
path: root/include/linux/mtio.h
diff options
context:
space:
mode:
authorKai Makisara <Kai.Makisara@kolumbus.fi>2008-02-24 22:23:24 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 12:15:39 -0500
commit40f6b36c6243462fb95d0343237331c423494b03 (patch)
tree456b78c5647684527e0104463dd45b8e93ea9d81 /include/linux/mtio.h
parentd35055a0f2637f29f95001a67b464fe833b09ebc (diff)
[SCSI] st: add option to use SILI in variable block reads
Add new option MT_ST_SILI to enable setting the SILI bit in reads in variable block mode. If SILI is set, reading a block shorter than the byte count does not result in CHECK CONDITION. The length of the block is determined using the residual count from the HBA. Avoiding the REQUEST SENSE command for every block speeds up some real applications considerably. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/linux/mtio.h')
-rw-r--r--include/linux/mtio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtio.h b/include/linux/mtio.h
index 6f8d2d45a8fb..ef01d6aa5934 100644
--- a/include/linux/mtio.h
+++ b/include/linux/mtio.h
@@ -192,6 +192,7 @@ struct mtpos {
#define MT_ST_SCSI2LOGICAL 0x800
#define MT_ST_SYSV 0x1000
#define MT_ST_NOWAIT 0x2000
+#define MT_ST_SILI 0x4000
/* The mode parameters to be controlled. Parameter chosen with bits 20-28 */
#define MT_ST_CLEAR_DEFAULT 0xfffff