Re: Core scsi layer crashes in 2.6.8.1

Alan Cox
2004-09-29T14:26:36Z

On Mer, 2004-09-29 at 15:11, James Bottomley wrote:
> 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.

The sequence I scribbled down from the console was

Illegal state transition Cancel->Offline
Badness in scsi_device_set_state
scsi_device_set_state
scsi_unjam_host
scsi_error_handler

badness in kref_get
kobject_get, get_device, scsi_request_fn
blk_insert_request, scsi_queue_insert
scsi_eh_flush_done_q, scsi_unjam_host
scsi_error_handler

OOPS scsi_device_dev_release
device_release
kobject_cleanup
kobject_release
kref_put
scsi_request_fn

Alan