Re: return value queuecommand should return after an unplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/6/20 3:44 AM, Oliver Neukum wrote:
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.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux