Re: BUG: CD driver sends command during host removal

James Bottomley
2004-10-11T20:13:00Z

On Mon, 2004-10-11 at 15:03, Alan Stern wrote:
> The problem arises when a command completes. In the notified ejection
> case, if the LLD tries to call the scsi_done routine for a completed
> command which was submitted before scsi_remove_host and which the SCSI
> core has already cleaned up, it will cause an oops. Since the LLD has no
> way to tell whether the core has cleaned up a command or not, its only
> choice is to fail _every_ command starting shortly before it calls
> scsi_remove_host.

This is the remove implies cancel issue that was discussed earlier. I
thought the proposal was to have a remove that wouldn't automatically
cancel all the commands? ... although I don't think I've seen any code
for that case yet.

James