diff options
author | Erez Zilber <erezz@voltaire.com> | 2006-09-11 05:20:54 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:50 -0400 |
commit | 8072ec2f8f6790df91e85d833e672c9c30a7ab3c (patch) | |
tree | 15866a5b44b5f199fea76f1b540c2a790203aad2 /drivers | |
parent | 777a71dd4d901f055967ddbd038d2a74ffce0eb8 (diff) |
IB/iser: Limit the max size of a scsi command
Currently, the data length of a command coming down from scsi-ml
is limited only by the size of its sg list (sg_tablesize). The
max data length may be different for different page size values.
By setting max_sectors, we limit the data length to
max_sectors*512 bytes.
Signed-off-by: Erez Zilber <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 1437d7ee3b19..e9cf1a9f1e1c 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c | |||
@@ -555,6 +555,7 @@ static struct scsi_host_template iscsi_iser_sht = { | |||
555 | .queuecommand = iscsi_queuecommand, | 555 | .queuecommand = iscsi_queuecommand, |
556 | .can_queue = ISCSI_XMIT_CMDS_MAX - 1, | 556 | .can_queue = ISCSI_XMIT_CMDS_MAX - 1, |
557 | .sg_tablesize = ISCSI_ISER_SG_TABLESIZE, | 557 | .sg_tablesize = ISCSI_ISER_SG_TABLESIZE, |
558 | .max_sectors = 1024, | ||
558 | .cmd_per_lun = ISCSI_MAX_CMD_PER_LUN, | 559 | .cmd_per_lun = ISCSI_MAX_CMD_PER_LUN, |
559 | .eh_abort_handler = iscsi_eh_abort, | 560 | .eh_abort_handler = iscsi_eh_abort, |
560 | .eh_host_reset_handler = iscsi_eh_host_reset, | 561 | .eh_host_reset_handler = iscsi_eh_host_reset, |