diff options
author | Bryant G. Ly <bryantly@linux.vnet.ibm.com> | 2017-02-06 11:04:28 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-02-08 13:51:24 -0500 |
commit | b22bc27868e8c11fe3f00937a341b44f80b50364 (patch) | |
tree | 8e12f041bfab895abb587d1fe16c84953329e0cd | |
parent | 9b2792c3da1e80f2d460167d319302a24c9ca2b7 (diff) |
ibmvscsis: Add SGL limit
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>
-rw-r--r-- | drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c index 99b747cedbeb..0f807798c624 100644 --- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c +++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | |||
@@ -3816,6 +3816,7 @@ static struct configfs_attribute *ibmvscsis_tpg_attrs[] = { | |||
3816 | static const struct target_core_fabric_ops ibmvscsis_ops = { | 3816 | static const struct target_core_fabric_ops ibmvscsis_ops = { |
3817 | .module = THIS_MODULE, | 3817 | .module = THIS_MODULE, |
3818 | .name = "ibmvscsis", | 3818 | .name = "ibmvscsis", |
3819 | .max_data_sg_nents = MAX_TXU / PAGE_SIZE, | ||
3819 | .get_fabric_name = ibmvscsis_get_fabric_name, | 3820 | .get_fabric_name = ibmvscsis_get_fabric_name, |
3820 | .tpg_get_wwn = ibmvscsis_get_fabric_wwn, | 3821 | .tpg_get_wwn = ibmvscsis_get_fabric_wwn, |
3821 | .tpg_get_tag = ibmvscsis_get_tag, | 3822 | .tpg_get_tag = ibmvscsis_get_tag, |