We should still be able to login even if the device is reserved.

TESTUNITREADY returning reservation conflict is no reason to fail the login
This commit is contained in:
Ronnie Sahlberg
2013-03-21 19:26:55 -07:00
parent 6a3888e39e
commit d5c5fb83af

View File

@@ -77,6 +77,11 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
status = 0;
}
/* Dont fail the login just because the medium is reserved */
if (status == SCSI_STATUS_RESERVATION_CONFLICT) {
status = 0;
}
ct->cb(iscsi, status?SCSI_STATUS_ERROR:SCSI_STATUS_GOOD, NULL,
ct->private_data);
scsi_free_scsi_task(task);