On Mon, 17 Nov 2008 15:43:59 +0900 "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com> wrote:
It would only make sense if __vmalloc() can be called in atomic contexts.
__vmalloc() cannot be called from irq contexts due to it taking
non-irq-safe spinlocks.
__vmalloc() kinda looks like it could be called from non-irq atomic
contexts with GFP_ATOMIC, but I think it lies. For example,
pud_alloc_one/pmd_alloc_one/etc use hard-wired GFP_KERNEL.
In which case this new allocation function can only be called from
contexts where GFP_KERNEL can be used, hence we don't need to pass that
in - it would be misleading to do so.
In fact it's not immediately clear why __vmalloc() takes a gfp_t
argument either?
--