]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ibmvscsis: Add SGL limit
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Mon, 6 Feb 2017 16:04:28 +0000 (10:04 -0600)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Feb 2017 18:51:24 +0000 (10:51 -0800)
This patch adds internal LIO sgl limit since the driver already
sets a max transfer limit on transport layer of 1MB to the client.

Cc: stable@vger.kernel.org
Tested-by: Steven Royer <seroyer@linux.vnet.ibm.com>
Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c

index 99b747cedbebc517a78714db321743f0837834b6..0f807798c6245f8ba64b5ec3cced694d6a821c31 100644 (file)
@@ -3816,6 +3816,7 @@ static struct configfs_attribute *ibmvscsis_tpg_attrs[] = {
 static const struct target_core_fabric_ops ibmvscsis_ops = {
        .module                         = THIS_MODULE,
        .name                           = "ibmvscsis",
+       .max_data_sg_nents              = MAX_TXU / PAGE_SIZE,
        .get_fabric_name                = ibmvscsis_get_fabric_name,
        .tpg_get_wwn                    = ibmvscsis_get_fabric_wwn,
        .tpg_get_tag                    = ibmvscsis_get_tag,