Skip to content

Commit

Permalink
mm/mempolicy.c: use in_task() in mempolicy_slab_node()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vaverin authored and torvalds committed Sep 3, 2021
1 parent be897d4 commit 38b031d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38b031d

Please sign in to comment.