35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From 9b76d98071df92db40bbfa74f579e6b80217248d Mon Sep 17 00:00:00 2001
|
|
From: dmitry pervushin <dpervushin@nvidia.com>
|
|
Date: Thu, 17 Nov 2016 13:39:25 +0100
|
|
Subject: [PATCH 369/371] mm: slub: reenabling interrupts in PREEMPT_RT
|
|
X-NVConfidentiality: public
|
|
|
|
If we are past SYSTEM_BOOTING_SINGLECORE, we have smp fully
|
|
initialized and should allow our spinlocks to sleep
|
|
|
|
Bug 1828392
|
|
|
|
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
|
|
Reviewed-on: http://git-master/r/1255582
|
|
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
|
|
---
|
|
mm/slub.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/mm/slub.c b/mm/slub.c
|
|
index fa466d2..ef5fb4e 100644
|
|
--- a/mm/slub.c
|
|
+++ b/mm/slub.c
|
|
@@ -1562,7 +1562,7 @@ static struct page *allocate_slab(struct kmem_cache *s, gfp_t flags, int node)
|
|
if (gfpflags_allow_blocking(flags))
|
|
enableirqs = true;
|
|
#ifdef CONFIG_PREEMPT_RT_FULL
|
|
- if (system_state == SYSTEM_RUNNING)
|
|
+ if (system_state > SYSTEM_BOOTING_SINGLECORE)
|
|
enableirqs = true;
|
|
#endif
|
|
if (enableirqs)
|
|
--
|
|
2.7.4
|
|
|