Re: eata irq abuse (was: Re: Linux 2.5.60)

Jeff Garzik (jgarzik@pobox.com)
Wed, 12 Feb 2003 11:03:15 -0500


Jeff Garzik wrote:
> Ballabio_Dario@emc.com wrote:
>
>> Yes, you are correct. I used spin_unlock in order to release the local
>> driver lock
>> during the scsi_register call, but I forgot that I had the irq
>> disabled as
>> well.
>> SO the correct fix is to use spin_unlock_irq/spin_lock_irq around the
>> scsi_register call. Same fix applies to the u14-34f driver.
>
> scsi_register may want to sleep, so that is not a fix at all...

Ooops, I missed the order. You (and Manfred) are right,
unlock-register-lock is desired.

ENOCAFFEINE, I plead...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/