summaryrefslogtreecommitdiff
path: root/drivers/target/loopback/tcm_loop.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-11-29 12:20:41 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-12-14 15:28:11 +0400
commit2e88efd3aaafa0df05593cdfa5fd17afe922781d (patch)
tree41f1f2c6c425d394fb55927b5fcec3a651660515 /drivers/target/loopback/tcm_loop.h
parent0877eafd1618ef683e2ff2273acdeca5f1b077b9 (diff)
downloadlinux-2e88efd3aaafa0df05593cdfa5fd17afe922781d.tar.xz
tcm_loop: bump max_sectors
There is not reason to artifically limit max_sectors in tcm_loop, set it to UINT_MAX to allow stressing the large I/O handling in the target core using the loopback driver. Also remove various superflous defines hiding the values set in the host template. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback/tcm_loop.h')
-rw-r--r--drivers/target/loopback/tcm_loop.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h
index 6b76c7a22bb0..15a036441471 100644
--- a/drivers/target/loopback/tcm_loop.h
+++ b/drivers/target/loopback/tcm_loop.h
@@ -1,16 +1,7 @@
#define TCM_LOOP_VERSION "v2.1-rc1"
#define TL_WWN_ADDR_LEN 256
#define TL_TPGS_PER_HBA 32
-/*
- * Defaults for struct scsi_host_template tcm_loop_driver_template
- *
- * We use large can_queue and cmd_per_lun here and let TCM enforce
- * the underlying se_device_t->queue_depth.
- */
-#define TL_SCSI_CAN_QUEUE 1024
-#define TL_SCSI_CMD_PER_LUN 1024
-#define TL_SCSI_MAX_SECTORS 1024
-#define TL_SCSI_SG_TABLESIZE 256
+
/*
* Used in tcm_loop_driver_probe() for struct Scsi_Host->max_cmd_len
*/