Re: Is it safe to kmalloc a large size of memory in interrupt handler?

2019-08-05 Thread Michal Hocko
On Mon 05-08-19 19:57:54, Fuqian Huang wrote: > In the implementation of kmalloc. > when the allocated size is larger than KMALLOC_MAX_CACHE_SIZE, > it will call kmalloc_large to allocate the memory. > kmalloc_large -> > kmalloc_order_trace->kmalloc_order->alloc_pages->alloc_pages_current->alloc_pa

Is it safe to kmalloc a large size of memory in interrupt handler?

2019-08-05 Thread Fuqian Huang
In the implementation of kmalloc. when the allocated size is larger than KMALLOC_MAX_CACHE_SIZE, it will call kmalloc_large to allocate the memory. kmalloc_large -> kmalloc_order_trace->kmalloc_order->alloc_pages->alloc_pages_current->alloc_pages_nodemask->get_page_from_freelist->node_reclaim->__no