Messages in this thread | | | Subject | Re: [PATCH 1/9] mm: add generic adaptive large memory allocationAPIs | From | Tetsuo Handa <> | Date | Thu, 13 May 2010 22:36:51 +0900 |
| |
Peter Zijlstra wrote: > NAK, I really utterly dislike that inatomic argument. The alloc side > doesn't function in atomic context either. Please keep the thing > symmetric in that regards.
Excuse me. kmalloc(GFP_KERNEL) may sleep (and therefore cannot be used in atomic context). However, kfree() for memory allocated with kmalloc(GFP_KERNEL) never sleep (and therefore can be used in atomic context). Why kmalloc() and kfree() are NOT kept symmetric?
| |