mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
mm/mempolicy.c: use in_task() in mempolicy_slab_node()
Obsoleted in_intrrupt() include task context with disabled BH, it's better to use in_task() instead. Link: https://lkml.kernel.org/r/984ee771-4834-21da-801f-c15c18ddf4d1@virtuozzo.com Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
be897d48a9
commit
38b031dd4d
@ -1934,7 +1934,7 @@ unsigned int mempolicy_slab_node(void)
|
||||
struct mempolicy *policy;
|
||||
int node = numa_mem_id();
|
||||
|
||||
if (in_interrupt())
|
||||
if (!in_task())
|
||||
return node;
|
||||
|
||||
policy = current->mempolicy;
|
||||
|
Loading…
Reference in New Issue
Block a user