Re: spin_lock_irq vs. spin_lock_irqsave.

From: Tigran Aivazian (tigran@veritas.com)
Date: Mon Jun 26 2000 - 05:08:14 EST


On Mon, 26 Jun 2000, Andi Kleen wrote:

> On Mon, Jun 26, 2000 at 10:20:47AM +0100, Tigran Aivazian wrote:
> > On Sat, 17 Jun 2000, Manfred Spraul wrote:
> > >
> > > The _bh variants disable bottom half delivery [softirqs, tasklets and the
> > > old bottom halfs such as timers]. Within your bh handler you can use
> > > spin_lock() instead of spin_lock_bh().
> >
> > it would appear that _bh variants disable bottom half delivery on the same
> > cpu - can't they be delivered on a different one? Or is the name
> > "local_bh_disable()" deceptive and really means "global_bh_disable()"?
>
> They only disable on the local CPU. The other CPUs should be covered by
> the spinlock.

yes, sorry - I was being silly - I could feel that I'd understand it
myself if I only waited another 10 seconds before pressing "^X Send"...

Thanks for sparing time to answer it anyway!

(but my other question about handle_softirq in schedule()/entry.S is still
valid :)

regards,
Tigran

-
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/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:08 EST