Re: Core scsi layer crashes in 2.6.8.1

Mark Lord
2004-10-05T15:46:34Z

James Bottomley wrote:
>
> This is expected behaviour. For orderly removal an cache sync command
> must be sent to drives with a writeback cache before they're powered
> down. For forced ejection, the driver has to error the command.

Yup, that's how it has to be done at present.

Another weirdness I ran into at one point, was that the mid-layer
could be made to segfault if a LLD asked it to remove a drive that
had previously been set "offline" -- it complains about an illegal
state transition during the removal, and then dies. This sequence
no longer occurs in the QStor driver, but it might resurface soon
as more drivers begin to support hot insertion/removal.

Cheers
--
Mark Lord
(hdparm keeper & the original "Linux IDE Guy")