[<prev] [next>] [day] [month] [year] [list]
Message-ID: <984ee771-4834-21da-801f-c15c18ddf4d1@virtuozzo.com>
Date: Mon, 9 Aug 2021 13:46:00 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, kernel@...nvz.org
Subject: [PATCH] mm: use in_task() in mempolicy_slab_node()
Obsoleted in_intrrupt() include task context with disabled BH,
it's better to use in_task() instead.
Signed-off-by: Vasily Averin <vvs@...tuozzo.com>
---
mm/mempolicy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 2f8ee67..f436c53 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1922,7 +1922,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;
--
1.8.3.1
Powered by blists - more mailing lists