Hello,
In the implementation of mempools (in mm/mempool.c in 2.6 kernels, for example at http://lxr.linux.no/source/mm/mempool.c), interrupts are disabled when accessing the mempool_t structure using the spin_lock_irqsave() and irq_unlock_irqrestore() functions.
Why is it necessary to disable interrupts ? Isn't it enough to use spin_lock() and spin_unlock() ?
Thanks,
Thomas -- Thomas Petazzoni thomas.petazzoni@xxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/