Next to BUS RESET, also accept NEXUS LOSS unit attention after login
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
8cc2915a17
commit
49d1145a10
@@ -49,7 +49,8 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
|
||||
|
||||
if (status != 0) {
|
||||
if (task->sense.key == SCSI_SENSE_UNIT_ATTENTION
|
||||
&& task->sense.ascq == SCSI_SENSE_ASCQ_BUS_RESET) {
|
||||
&& (task->sense.ascq == SCSI_SENSE_ASCQ_BUS_RESET ||
|
||||
task->sense.ascq == SCSI_SENSE_ASCQ_NEXUS_LOSS)) {
|
||||
/* This is just the normal unitattention/busreset
|
||||
* you always get just after a fresh login. Try
|
||||
* again.
|
||||
|
||||
Reference in New Issue
Block a user