Skip to contentSkip to conversation

return value queuecommand should return after an unplug

DISCUSSION Oliver Neukum 2 participants 2 messages Feb 6, 2020 SCSI

lore
Share & tools
lore
#0 lore raw

Hi,

I am looking at the queuecommand() mathod of the UAS low level driver. What is a host adaptor driver to do when it gets a scsi request for an unplugged host adapter?

All teh return values I see say that something is busy. But I have the case that something is dead and gone.

Regards
Oliver

#1 lore raw
Quoted 6 lines · Oliver Neukum

I am looking at the queuecommand() mathod of the UAS low level driver. What is a host adaptor driver to do when it gets a scsi request for an unplugged host adapter?

All teh return values I see say that something is busy. But I have the case that something is dead and gone.

Hi Oliver,

I think that the SCSI result has to be set to an appropriate error code, that >scsi_done() has to be called and that queuecommand() has to return 0 (success) in this case. Examples can be found in virtscsi_complete_cmd().

Bart.