mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
mm, slub: discard slabs in unfreeze_partials() without irqs disabled
No need for disabled irqs when discarding slabs, so restore them before discarding. Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
parent
f3ab8b6b92
commit
8de06a6f48
@ -2406,6 +2406,8 @@ static void unfreeze_partials(struct kmem_cache *s,
|
||||
if (n)
|
||||
spin_unlock(&n->list_lock);
|
||||
|
||||
local_irq_restore(flags);
|
||||
|
||||
while (discard_page) {
|
||||
page = discard_page;
|
||||
discard_page = discard_page->next;
|
||||
@ -2415,7 +2417,6 @@ static void unfreeze_partials(struct kmem_cache *s,
|
||||
stat(s, FREE_SLAB);
|
||||
}
|
||||
|
||||
local_irq_restore(flags);
|
||||
#endif /* CONFIG_SLUB_CPU_PARTIAL */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user