summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2021-09-03 00:00:23 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 18:58:17 +0200
commit38b031dd4d03542d963eebe600d67ea34f47eb65 (patch)
tree88755d368bbba98b4395462ad41beda9989ee2f2 /mm/mempolicy.c
parentmm/mempolicy: unify the create() func for bind/interleave/prefer-many policies (diff)
downloadlinux-38b031dd4d03542d963eebe600d67ea34f47eb65.tar.xz
linux-38b031dd4d03542d963eebe600d67ea34f47eb65.zip
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>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index bd4f249aada3..5e90b3fb7794 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -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;