Hi all, Well, in theory you can generate dead-lock cituation. kmalloc with GFP_KERNEL flag in low memory condition can put "current" user to sleep waiting for swap daemon to free pages. I think I don't need to explain further what could happen if you have IRQ lock around it.... It looks like a time bomb :).. Regards, Konstantyn -----Original Message----- From: Guillaume Thouvenin [mailto:guillaume.thouvenin@polymtl.ca] Sent: Thursday, May 06, 2004 9:07 AM To: Kernel Newbies Subject: kmalloc within IRQ lock Hello, I don't see a scenario where doing a kmalloc inside an IRQ lock could generate a deadlock. Can someone give me one? Where can you safely use kmalloc? everywhere outside a lock? Thanks for your help Guillaume -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/