Re: BUG: CD driver sends command during host removal

James Bottomley
2004-09-29T21:26:25Z

On Wed, 2004-09-29 at 17:20, Luben Tuikov wrote:
> Is it possible that there could be a slight race when
> the LLDD starts calling scsi_done() on pending commands,
> _after_ it has called scsi_remove_host()?

No, because it starts failing commmands *before* it calls
scsi_remove_host().

> BTW, why have/leave two alternate paths for this behavior?
> This may bite us back in the future when things get more
> complicated, i.e. dealing with more complicated devices,
> transports, etc.

Certain LLDs have no internal track of outstanding commands.

James