Thread (47 messages) 47 messages, 3 authors, 2021-08-04
STALE1790d REVIEWED: 1 (0M)
Revisions (4)
  1. v3 current
  2. v4 [diff vs current]
  3. v5 [diff vs current]
  4. v6 [diff vs current]

[PATCH v3 01/35] mm, slub: don't call flush_all() from slab_debug_trace_open()

From: Vlastimil Babka <hidden>
Date: 2021-07-29 13:21:44
Also in: lkml
Subsystem: memory management, slab allocator, the rest · Maintainers: Andrew Morton, Vlastimil Babka, Harry Yoo, Linus Torvalds

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 <redacted>
Acked-by: Christoph Lameter <redacted>
---
 mm/slub.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
index 090fa14628f9..422a61d7bf5f 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -5820,9 +5820,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;
-- 
2.32.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help