Linus Torvalds writes: (Summary) wrote:
gfp);
Side note: how about we just move that "gfpflags_allow_blocking()" into kvmalloc() instead, and make kvmalloc() generally usable? Now we have that really odd situation where kvmalloc() takes gfp flags, but to quote the comment:
to quote the comment:
* Any use of gfp flags outside of GFP_KERNEL should be consulted with mm people.
people.
and the code:
and the code:
[...]
gfp);[...]
gfp);gfp);
Side note: how about we just move that "gfpflags_allow_blocking()" into kvmalloc() instead, and make kvmalloc() generally usable? Now we have that really odd situation where kvmalloc() takes gfp flags, but to quote the comment:
to quote the comment:
* Any use of gfp flags outside of GFP_KERNEL should be consulted with mm people.
people.
and the code:
and the code:
/* * vmalloc uses GFP_KERNEL for some internal allocations (e.g page tables) * so the given set of flags has to be compatible.