Skip to content

Commit 8de06a6

Browse files
committed
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 <[email protected]>
1 parent f3ab8b6 commit 8de06a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/slub.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,6 +2406,8 @@ static void unfreeze_partials(struct kmem_cache *s,
24062406
if (n)
24072407
spin_unlock(&n->list_lock);
24082408

2409+
local_irq_restore(flags);
2410+
24092411
while (discard_page) {
24102412
page = discard_page;
24112413
discard_page = discard_page->next;
@@ -2415,7 +2417,6 @@ static void unfreeze_partials(struct kmem_cache *s,
24152417
stat(s, FREE_SLAB);
24162418
}
24172419

2418-
local_irq_restore(flags);
24192420
#endif /* CONFIG_SLUB_CPU_PARTIAL */
24202421
}
24212422

0 commit comments

Comments
 (0)