Re: kmalloc in the schedule function

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

 



On 3/9/06, anil dahiya <ak_ait@xxxxxxxxx> wrote:
>
> Hi
> on 2.4.21-32(redhat enterprise update 5) when i call kmalloc  with
> GFP_KERNEL
> my system get hangs it hangs.. Anyone can suggest what should i do ..
>

You shouldn't call a function that might sleep (such as kmalloc())
from schedule().
You may get away with it if you use GFP_ATOMIC or similar, but still
it sounds like a really bad idea.

Why do you think you need to call kmalloc() from schedule anyway?


--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
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