Connect: Don't use the TUR checks on re-connects
Only use TUR to eat any pending unit attentions on the initial connect but not during reconnect. From Peter Lieven <pl@kamp.de> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -130,7 +130,7 @@ iscsi_login_cb(struct iscsi_context *iscsi, int status, void *command_data _U_,
|
||||
return;
|
||||
}
|
||||
|
||||
if (ct->lun != -1) {
|
||||
if (ct->lun != -1 && !iscsi->old_iscsi) {
|
||||
if (iscsi_testunitready_task(iscsi, ct->lun,
|
||||
iscsi_testunitready_cb, ct) == NULL) {
|
||||
iscsi_set_error(iscsi, "iscsi_testunitready_async failed.");
|
||||
|
||||
@@ -206,8 +206,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
|
||||
struct iscsi_pdu *pdu;
|
||||
int flags;
|
||||
|
||||
if (iscsi->old_iscsi &&
|
||||
(iscsi->is_loggedin == 0 || task->cdb[0] != SCSI_OPCODE_TESTUNITREADY)) {
|
||||
if (iscsi->old_iscsi) {
|
||||
iscsi = iscsi->old_iscsi;
|
||||
ISCSI_LOG(iscsi, 2, "iscsi_scsi_command_async: queuing cmd to old_iscsi while reconnecting");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user