projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3ab8b6
)
mm, slub: discard slabs in unfreeze_partials() without irqs disabled
author
Vlastimil Babka
<vbabka@suse.cz>
Thu, 20 May 2021 12:01:57 +0000
(14:01 +0200)
committer
Vlastimil Babka
<vbabka@suse.cz>
Fri, 3 Sep 2021 23:12:22 +0000
(
01:12
+0200)
No need for disabled irqs when discarding slabs, so restore them before
discarding.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 1c4bd45d66a1fedc026a970a2b356eefd1686723..0a1e048d0db7c37f4ab978b33c805d35448ade3d 100644
(file)
--- 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 */
}