From: Mike Christie <micha...@cs.wisc.edu>

Patch from Red Hat bugzilla:

When doing discovery if the targets span multiple PDUs
the iscsi tools are failing on several targets like tgt,
because we are increasing the itt. We should not be incrementing
the itt of pdus within a sequence.
---
 usr/discovery.c          |    6 ------
 utils/open-isns/socket.c |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/usr/discovery.c b/usr/discovery.c
index 381f825..e34cc63 100644
--- a/usr/discovery.c
+++ b/usr/discovery.c
@@ -496,9 +496,6 @@ request_targets(iscsi_session_t *session)
        text.ttt = ISCSI_RESERVED_TAG;
        text.flags = ISCSI_FLAG_CMD_FINAL;
 
-       if (++session->itt == ISCSI_RESERVED_TAG)
-               session->itt = 1;
-
        if (!iscsi_io_send_pdu(&session->conn[0], hdr, ISCSI_DIGEST_NONE, data,
                    ISCSI_DIGEST_NONE, session->conn[0].active_timeout)) {
                log_error("failed to send SendTargets PDU");
@@ -527,9 +524,6 @@ iterate_targets(iscsi_session_t *session, uint32_t ttt)
        text.ttt = ttt;
        text.flags = ISCSI_FLAG_CMD_FINAL;
 
-       if (++session->itt == ISCSI_RESERVED_TAG)
-               session->itt = 1;
-
        if (!iscsi_io_send_pdu(&session->conn[0], pdu, ISCSI_DIGEST_NONE, data,
                    ISCSI_DIGEST_NONE, session->conn[0].active_timeout)) {
                log_error("failed to send empty text PDU");

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to