spin_lock and spin_lock_irqsave usage?

Peeter Joot (peeter@joot.com)
Wed, 3 Dec 1997 22:58:12 -0500 (EST)


Hello,

I was wondering what the differences were between spin_lock_irq(save|restore)
and spin_lock.

I have a rough idea of what they do, although I cannot profess to really
understand how the interrupt code works. What I really want to know
is where one should use the irqsave/restore version of spin_lock and
where this is not needed or wanted.

I thought at first this may be on longer sorts of operations where it
is more likely to have an interrupt happen, but this doesn't seem to be the
case as places like REMOVE_LINKS use the irq spin locks, but only hold the
locks for a few operations.

Peeter

--
Hoping that I don't sound too clueless:)