reconnect logic and pdu handling

Rework the reconnect logic so we just call iscsi_scsi_command_async()
for the scsi commands we are re-quining instead of poking into the
private fields of the structures themself.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-02-23 19:28:56 -08:00
parent aedced3b95
commit 76f8296dbb
3 changed files with 14 additions and 26 deletions

View File

@@ -189,7 +189,7 @@ iscsi_timeout_scan(struct iscsi_context *iscsi)
}
}
int
static int
iscsi_send_unsolicited_data_out(struct iscsi_context *iscsi, struct iscsi_pdu *pdu)
{
uint32_t len = MIN(pdu->expxferlen, iscsi->first_burst_length) - pdu->payload_len;