diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-06-10 19:27:59 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-02 14:06:31 +0400 |
commit | 53f1d104f250540853271653f507ac09b4bfc66e (patch) | |
tree | 24ffd9520c4834389b090a45333e2fa284002692 /drivers/infiniband | |
parent | 18b0e46ab4670436bcef4df0807ade2ffa7901ce (diff) | |
download | linux-53f1d104f250540853271653f507ac09b4bfc66e.tar.xz |
Target/iscsi: Fix sendtargets response pdu for iser transport
commit 22c7aaa57e80853b4904a46c18f97db0036a3b97 upstream.
In case the transport is iser we should not include the
iscsi target info in the sendtargets text response pdu.
This causes sendtargets response to include the target
info twice.
Modify iscsit_build_sendtargets_response to filter
transport types that don't match.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reported-by: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 27925b7161ff..548d86847d18 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -1949,7 +1949,7 @@ isert_put_text_rsp(struct iscsi_cmd *cmd, struct iscsi_conn *conn) int rc; isert_create_send_desc(isert_conn, isert_cmd, &isert_cmd->tx_desc); - rc = iscsit_build_text_rsp(cmd, conn, hdr); + rc = iscsit_build_text_rsp(cmd, conn, hdr, ISCSI_INFINIBAND); if (rc < 0) return rc; |