Hi,

It's the first time I used this list so I apologize if this is not the
right place for this question.

I have a SCSI drive already reserved by one host.  Another host tries to
access it (with maybe TestUnitReady, Read ...).  The device returns scsi
status of Reservation Conflict.  My driver returns DID_OK and
RESERVATION_CONFLICT.  However, Linux retries that command a few times,
issues Request Sense, then returns to the application with a status of
0x8000000 (DRIVER_SENSE).

My questions are:
1.  Did I return the correct error code that Linux wants (DID_OK &
RESERVATION_CONFLICT)?
2.  Shouldn't Linux return RESERVATION_CONFLICT to the application
without issuing RequestSense.  RequestSense should only be sent in case
of CHECK_CONDITION.

Thanks for any help you can provide.

--Tuong

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to