Re: [PATCH v2 10/16] iscsi-target: use conn->network_transport in text rsp

2016-04-10 Thread Sagi Grimberg

Looks fine,

Reviewed-by: Sagi Grimberg 
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2 10/16] iscsi-target: use conn->network_transport in text rsp

2016-04-09 Thread Varun Prakash
Use conn->network_transport instead of
ISCSI_TCP to build text response.

Signed-off-by: Varun Prakash 
---
 drivers/target/iscsi/iscsi_target.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/target/iscsi/iscsi_target.c 
b/drivers/target/iscsi/iscsi_target.c
index b655f0c..e61249d 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3546,7 +3546,8 @@ static int iscsit_send_text_rsp(
if (unlikely(!hdr))
return -ENOMEM;
 
-   text_length = iscsit_build_text_rsp(cmd, conn, hdr, ISCSI_TCP);
+   text_length = iscsit_build_text_rsp(cmd, conn, hdr,
+   conn->network_transport);
if (text_length < 0) {
if (conn->conn_transport->iscsit_free_pdu)
conn->conn_transport->iscsit_free_pdu(conn, cmd);
-- 
2.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html