Skip to content

Commit b22bc27

Browse files
bglyNicholas Bellinger
authored andcommitted
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: [email protected] Tested-by: Steven Royer <[email protected]> Signed-off-by: Bryant G. Ly <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 9b2792c commit b22bc27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,6 +3816,7 @@ static struct configfs_attribute *ibmvscsis_tpg_attrs[] = {
38163816
static const struct target_core_fabric_ops ibmvscsis_ops = {
38173817
.module = THIS_MODULE,
38183818
.name = "ibmvscsis",
3819+
.max_data_sg_nents = MAX_TXU / PAGE_SIZE,
38193820
.get_fabric_name = ibmvscsis_get_fabric_name,
38203821
.tpg_get_wwn = ibmvscsis_get_fabric_wwn,
38213822
.tpg_get_tag = ibmvscsis_get_tag,

0 commit comments

Comments
 (0)