Skip to content

Commit 5f91bb0

Browse files
Michael ReedJames Bottomley
authored andcommitted
[SCSI] reservation conflict after timeout causes device to be taken offline
An IBM tape drive failed to complete a PERSISTENT RESERVE IN within the scsi cmd timeout. Error recovery was initiated and it sequenced from abort through taking the tape drive offline. The device was taken offline because it repeatedly responded to the TUR command issued by error recovery with a RESERVATION CONFLICT status. The tape drive was reserved to another system. This is perfectly legitimate response to TUR, and is one that an escalation of recovery is unlikely to clear. Further, escalation of recovery can have undesirable side effects on the operation of tape drives shared with other initiators. Instead of escalating recovery, error recovery should treat the RESERVATION CONFLICT response to the TUR as a good status, giving the issuer of the command the opportunity to handle the timeout and reservation conflict. Signed-off-by: Michael reed <mdr@sgi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent edced19 commit 5f91bb0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/scsi/scsi_error.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,13 @@ static int scsi_eh_completed_normally(struct scsi_cmnd *scmd)
382382
* who knows? FIXME(eric)
383383
*/
384384
return SUCCESS;
385+
case RESERVATION_CONFLICT:
386+
/*
387+
* let issuer deal with this, it could be just fine
388+
*/
389+
return SUCCESS;
385390
case BUSY:
386391
case QUEUE_FULL:
387-
case RESERVATION_CONFLICT:
388392
default:
389393
return FAILED;
390394
}

0 commit comments

Comments
 (0)