From: Vlastimil Babka Date: Fri, 28 May 2021 12:32:10 +0000 (+0200) Subject: mm, slub: don't call flush_all() from slab_debug_trace_open() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eafb1d64030abf5f885026c2074d120c13e0ca9d;p=linux.git mm, slub: don't call flush_all() from slab_debug_trace_open() slab_debug_trace_open() can only be called on caches with SLAB_STORE_USER flag and as with all slub debugging flags, such caches avoid cpu or percpu partial slabs altogether, so there's nothing to flush. Signed-off-by: Vlastimil Babka Acked-by: Christoph Lameter --- diff --git a/mm/slub.c b/mm/slub.c index f77d8cd79ef7f..f6063ec97a554 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5825,9 +5825,6 @@ static int slab_debug_trace_open(struct inode *inode, struct file *filep) if (!alloc_loc_track(t, PAGE_SIZE / sizeof(struct location), GFP_KERNEL)) return -ENOMEM; - /* Push back cpu slabs */ - flush_all(s); - for_each_kmem_cache_node(s, node, n) { unsigned long flags; struct page *page;