spin_lock doesn't work?!?

Scott Wood scottwood at freescale.com
Thu Aug 30 07:38:24 EST 2007


On Wed, Aug 29, 2007 at 02:26:15PM -0700, melinda develey wrote: I
> discovered that I called spin_lock two times consecutively without
> calling spin_unlock but my code didn't lock (I was managing an ioctl). 
> Probably I didn't understand how spin_lock works!!!!

spinlocks are no-ops on uniprocessor without preemption.

-Scott


More information about the Linuxppc-embedded mailing list