Re: spin_lock and linux philosophy question...

Robert Dinse (nanook@eskimo.com)
Mon, 13 Sep 1999 07:01:41 -0700 (PDT)


On Mon, 13 Sep 1999, Momchil Velikov wrote:
>
> You can also use a spinlock in an interrupt handler, where you can't sleep at
> all.
>
> Regards,
> -velco

Are there ever cases where you lock outside of interrupts but expect code
inside of an interrupt handler to unlock? Or conversely, cases where you lock
during an interrupt, do some preliminary work, then return expecting code
outside to unlock?

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