All of lore.kernel.org
 help / color / mirror / Atom feed
* return value queuecommand should return after an unplug
@ 2020-02-06 11:44 Oliver Neukum
  2020-02-06 15:21 ` Bart Van Assche
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Neukum @ 2020-02-06 11:44 UTC (permalink / raw)
  To: linux-scsi

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: return value queuecommand should return after an unplug
  2020-02-06 11:44 return value queuecommand should return after an unplug Oliver Neukum
@ 2020-02-06 15:21 ` Bart Van Assche
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Van Assche @ 2020-02-06 15:21 UTC (permalink / raw)
  To: Oliver Neukum, linux-scsi

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-06 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 11:44 return value queuecommand should return after an unplug Oliver Neukum
2020-02-06 15:21 ` Bart Van Assche

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.