aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 1f376bce413c..ef6353f0adbd 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1012,8 +1012,11 @@ area_found:
1012 mutex_unlock(&pcpu_alloc_mutex); 1012 mutex_unlock(&pcpu_alloc_mutex);
1013 } 1013 }
1014 1014
1015 if (chunk != pcpu_reserved_chunk) 1015 if (chunk != pcpu_reserved_chunk) {
1016 spin_lock_irqsave(&pcpu_lock, flags);
1016 pcpu_nr_empty_pop_pages -= occ_pages; 1017 pcpu_nr_empty_pop_pages -= occ_pages;
1018 spin_unlock_irqrestore(&pcpu_lock, flags);
1019 }
1017 1020
1018 if (pcpu_nr_empty_pop_pages < PCPU_EMPTY_POP_PAGES_LOW) 1021 if (pcpu_nr_empty_pop_pages < PCPU_EMPTY_POP_PAGES_LOW)
1019 pcpu_schedule_balance_work(); 1022 pcpu_schedule_balance_work();