Re: Core scsi layer crashes in 2.6.8.1

James Bottomley
2004-09-29T14:12:07Z

On Tue, 2004-09-28 at 16:03, Alan Cox wrote:
> Second problem is with the scsi handling logic for errors. If you rmmod
> a scsi driver while it is error handling you get a chain of errors
> starting with
>
> Illegal transition Cancel->Offline
> Badness is scsi_device_set_state
> path:
> scsi_device_set_state
> scsi_unjam_host
> scsi_error_handler
>

These state transition warnings are currently expected in this code
(they're basically verbose warnings).

What was the oops?

I have a theory that we should be taking a device reference before
waking up the error handler, otherwise host removal can race with error
handling.

James