Skip to content

Commit 38b031d

Browse files
vaverintorvalds
authored andcommitted
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/[email protected] Signed-off-by: Vasily Averin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent be897d4 commit 38b031d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/mempolicy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ unsigned int mempolicy_slab_node(void)
19341934
struct mempolicy *policy;
19351935
int node = numa_mem_id();
19361936

1937-
if (in_interrupt())
1937+
if (!in_task())
19381938
return node;
19391939

19401940
policy = current->mempolicy;

0 commit comments

Comments
 (0)