Quantcast

[PATCH Xenial/Yakkety SRU] ibmvscsis: Add SGL limit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH Xenial/Yakkety SRU] ibmvscsis: Add SGL limit

Tim Gardner-2
From: "Bryant G. Ly" <[hidden email]>

BugLink: http://bugs.launchpad.net/bugs/1662551

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: [hidden email]
Tested-by: Steven Royer <[hidden email]>
Signed-off-by: Bryant G. Ly <[hidden email]>
Signed-off-by: Nicholas Bellinger <[hidden email]>
(cherry picked from commit b22bc27868e8c11fe3f00937a341b44f80b50364)
Signed-off-by: Tim Gardner <[hidden email]>
---
 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
index dfe4778..4bb5635 100644
--- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
+++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
@@ -3818,6 +3818,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,
--
2.7.4


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ACK: [PATCH Xenial/Yakkety SRU] ibmvscsis: Add SGL limit

brad.figg

Trivial cherry-pick. Looks good.

--
Brad Figg [hidden email] http://www.canonical.com

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ACK and APPLIED: [PATCH Xenial/Yakkety SRU] ibmvscsis: Add SGL limit

Thadeu Lima de Souza Cascardo-3
In reply to this post by Tim Gardner-2
Applied to xenial and yakkety master-next branches.

Thanks.
Cascardo.

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Loading...