diff options
author | Kai Makisara <Kai.Makisara@kolumbus.fi> | 2008-02-24 22:23:24 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 12:15:39 -0500 |
commit | 40f6b36c6243462fb95d0343237331c423494b03 (patch) | |
tree | 456b78c5647684527e0104463dd45b8e93ea9d81 /drivers/scsi/st_options.h | |
parent | d35055a0f2637f29f95001a67b464fe833b09ebc (diff) | |
download | op-kernel-dev-40f6b36c6243462fb95d0343237331c423494b03.zip op-kernel-dev-40f6b36c6243462fb95d0343237331c423494b03.tar.gz |
[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 'drivers/scsi/st_options.h')
-rw-r--r-- | drivers/scsi/st_options.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/st_options.h b/drivers/scsi/st_options.h index b6b5c9c..d2f9479 100644 --- a/drivers/scsi/st_options.h +++ b/drivers/scsi/st_options.h @@ -3,7 +3,7 @@ Copyright 1995-2003 Kai Makisara. - Last modified: Mon Apr 7 22:49:18 2003 by makisara + Last modified: Thu Feb 21 21:47:07 2008 by kai.makisara */ #ifndef _ST_OPTIONS_H @@ -94,6 +94,10 @@ The default is BSD semantics. */ #define ST_SYSV 0 +/* If ST_SILI is non-zero, the SILI bit is set when reading in variable block + mode and the block size is determined using the residual returned by the HBA. */ +#define ST_SILI 0 + /* Time to wait for the drive to become ready if blocking open */ #define ST_BLOCK_SECONDS 120 |