VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Vasily Averin <vvs@virtuozzo.com> 2021-09-02 15:00:23 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:17 -0700 commit: 38b031dd4d03542d963eebe600d67ea34f47eb65 parent: be897d48a971e36daadbd9289967e7e4f3749528
Commit Summary:
mm/mempolicy.c: use in_task() in mempolicy_slab_node()
Diffstat:
1 file changed, 1 insertion, 1 deletion
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;