diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-29 03:20:41 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-14 06:28:11 -0500 |
commit | 2e88efd3aaafa0df05593cdfa5fd17afe922781d (patch) | |
tree | 41f1f2c6c425d394fb55927b5fcec3a651660515 /drivers/target/loopback/tcm_loop.c | |
parent | 0877eafd1618ef683e2ff2273acdeca5f1b077b9 (diff) |
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.c')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 572d27a6b7ae..c47ff7f59e57 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -416,11 +416,11 @@ static struct scsi_host_template tcm_loop_driver_template = { | |||
416 | .queuecommand = tcm_loop_queuecommand, | 416 | .queuecommand = tcm_loop_queuecommand, |
417 | .change_queue_depth = tcm_loop_change_queue_depth, | 417 | .change_queue_depth = tcm_loop_change_queue_depth, |
418 | .eh_device_reset_handler = tcm_loop_device_reset, | 418 | .eh_device_reset_handler = tcm_loop_device_reset, |
419 | .can_queue = TL_SCSI_CAN_QUEUE, | 419 | .can_queue = 1024, |
420 | .this_id = -1, | 420 | .this_id = -1, |
421 | .sg_tablesize = TL_SCSI_SG_TABLESIZE, | 421 | .sg_tablesize = 256, |
422 | .cmd_per_lun = TL_SCSI_CMD_PER_LUN, | 422 | .cmd_per_lun = 1024, |
423 | .max_sectors = TL_SCSI_MAX_SECTORS, | 423 | .max_sectors = 0xFFFF, |
424 | .use_clustering = DISABLE_CLUSTERING, | 424 | .use_clustering = DISABLE_CLUSTERING, |
425 | .slave_alloc = tcm_loop_slave_alloc, | 425 | .slave_alloc = tcm_loop_slave_alloc, |
426 | .slave_configure = tcm_loop_slave_configure, | 426 | .slave_configure = tcm_loop_slave_configure, |