RE: kmalloc within IRQ lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



But you can call them using the GFP_ATOMIC flag right?

Kishore

>>> Guillaume Thouvenin <guillaume.thouvenin@polymtl.ca> 05/07/04 02:07PM >>>
Selon "Prokopenko, Konstantyn" <kproko@analogic.com>:

> 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 :)..

Is it the same for kfree?

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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux