On Fri, May 19, 2000, Al Borchers <[EMAIL PROTECTED]> wrote:
> Johannes Erdfelt wrote:
>
> > Looking at the driver, why do you only use spin_lock? It's not
> > safe for interrupts.
> >
> > This may be causing the deadlocks you are seeing.
>
> Originally I used spin_lock_irqsave, but it caused problems (its been a while
> so I don't quite remember the details). I meant to ask or check the code to
> see if our serial converter would ever be called directly from an interrupt
> --if the code is not called from an interrupt I should not need to use
> spin_lock_irqsave, correct? Is the callback function called directly
> from an interrupt, or simply put on the task queue and called during idle
> time?
The callback is called from an interrupt. I know that for a fact.
> I will go back to spin_lock_irqsave and see what effect that has now.
You shouldn't use spin_lock_irqsave in a function called from an
interrupt, but you should use spin_lock_irqsave in functions not called
from an interrupt.
JE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]