Thomas Petazzoni wrote:
Why is it necessary to disable interrupts ? Isn't it enough to use spin_lock() and spin_unlock() ?
I haven't looked at the code, but you need to use spin_lock_irqsave() when the resource you're protecting is also accessed in an interrupt handler.
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
One thing a Southern boy will never say is, "I don't think duct tape will fix it." -- Ed Smylie, NASA engineer for Apollo 13
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/