debug: add NOP Out and stalled outqueue debug messages
Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -83,6 +83,7 @@ iscsi_nop_out_async(struct iscsi_context *iscsi, iscsi_command_cb cb,
|
|||||||
}
|
}
|
||||||
|
|
||||||
iscsi->nops_in_flight++;
|
iscsi->nops_in_flight++;
|
||||||
|
ISCSI_LOG(iscsi, 6, "NOP Out Send (nops_in_flight: %d)", iscsi->nops_in_flight);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -138,6 +139,8 @@ iscsi_process_nop_out_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
|
|||||||
|
|
||||||
iscsi->nops_in_flight = 0;
|
iscsi->nops_in_flight = 0;
|
||||||
|
|
||||||
|
ISCSI_LOG(iscsi, 6, "NOP Out Reply received");
|
||||||
|
|
||||||
if (pdu->callback == NULL) {
|
if (pdu->callback == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -627,12 +627,16 @@ iscsi_write_to_socket(struct iscsi_context *iscsi)
|
|||||||
if (iscsi->is_corked) {
|
if (iscsi->is_corked) {
|
||||||
/* connection is corked we are not allowed to send
|
/* connection is corked we are not allowed to send
|
||||||
* additional PDUs */
|
* additional PDUs */
|
||||||
|
ISCSI_LOG(iscsi, 6, "iscsi_write_to_socket: socket is corked");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iscsi_serial32_compare(iscsi->outqueue->cmdsn, iscsi->maxcmdsn) > 0
|
if (iscsi_serial32_compare(iscsi->outqueue->cmdsn, iscsi->maxcmdsn) > 0
|
||||||
&& !(iscsi->outqueue->outdata.data[0] & ISCSI_PDU_IMMEDIATE)) {
|
&& !(iscsi->outqueue->outdata.data[0] & ISCSI_PDU_IMMEDIATE)) {
|
||||||
/* stop sending for non-immediate PDUs. maxcmdsn is reached */
|
/* stop sending for non-immediate PDUs. maxcmdsn is reached */
|
||||||
|
ISCSI_LOG(iscsi, 6,
|
||||||
|
"iscsi_write_to_socket: maxcmdsn reached (outqueue[0]->cmdsnd %08x > maxcmdsn %08x)",
|
||||||
|
iscsi->outqueue->cmdsn, iscsi->maxcmdsn);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* pop first element of the outqueue */
|
/* pop first element of the outqueue */
|
||||||
|
|||||||
Reference in New Issue
Block a user