diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2021-05-20 14:01:57 +0200 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2021-09-04 01:12:22 +0200 |
commit | 8de06a6f48f2062444a8872eb7f5abbfe65b5ecd (patch) | |
tree | 09739678d27f5d0dd852d844d1672f20ad6f0699 /mm | |
parent | f3ab8b6b9228176920e1c73fa24d2db62268aa48 (diff) | |
download | linux-stable-8de06a6f48f2062444a8872eb7f5abbfe65b5ecd.tar.gz linux-stable-8de06a6f48f2062444a8872eb7f5abbfe65b5ecd.tar.bz2 linux-stable-8de06a6f48f2062444a8872eb7f5abbfe65b5ecd.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c index 1c4bd45d66a1..0a1e048d0db7 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -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 */ } |