diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2010-09-16 12:09:47 -0500 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2010-09-16 12:22:56 -0500 |
commit | 5b793f754c3a792a1f413f408598d2f180ef5734 (patch) | |
tree | a3017a89d29f2367cc8005957e17dca775cc116b /usr/discovery.c | |
parent | 0180ef02dcf755e8ed82adf63100bffec2b6d876 (diff) | |
download | open-iscsi-5b793f754c3a792a1f413f408598d2f180ef5734.tar.gz |
iscsi tools: fix multi pdu sendtargets discovery sequences
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.
Diffstat (limited to 'usr/discovery.c')
-rw-r--r-- | usr/discovery.c | 6 |
1 files changed, 0 insertions, 6 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"); |