linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] SLUB: improve filling cpu partial a bit in get_partial_node()
@ 2024-03-31  2:19 xiongwei.song
  2024-03-31  2:19 ` [PATCH 1/4] mm/slub: remove the check of !kmem_cache_has_cpu_partial() xiongwei.song
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: xiongwei.song @ 2024-03-31  2:19 UTC (permalink / raw)
  To: vbabka, rientjes, cl, penberg, iamjoonsoo.kim, akpm,
	roman.gushchin, 42.hyeyoo
  Cc: linux-mm, linux-kernel, chengming.zhou

From: Xiongwei Song <xiongwei.song@windriver.com>

This series is to remove the unnecessary check for filling cpu partial
and improve the readability.

Introduce slub_get_cpu_partial() and dummy function to prevent compiler
warning with CONFIG_SLUB_CPU_PARTIAL disabled. This is done in patch 2.
Use the helper in patch 3 and 4.

No functionality changed.

Actually, the series is the improvement of patch below:
https://lore.kernel.org/lkml/934f65c6-4d97-6c4d-b123-4937ede24a99@google.com/T/

Regards,
Xiongwei

Xiongwei Song (4):
  mm/slub: remove the check of !kmem_cache_has_cpu_partial()
  mm/slub: add slub_get_cpu_partial() helper
  mm/slub: simpilify get_partial_node()
  mm/slub: don't read slab->cpu_partial_slabs directly

 mm/slub.c | 35 +++++++++++++++++++++++------------
 1 file changed, 23 insertions(+), 12 deletions(-)

-- 
2.27.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-04-03 11:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-31  2:19 [PATCH 0/4] SLUB: improve filling cpu partial a bit in get_partial_node() xiongwei.song
2024-03-31  2:19 ` [PATCH 1/4] mm/slub: remove the check of !kmem_cache_has_cpu_partial() xiongwei.song
2024-04-02  9:45   ` Vlastimil Babka
2024-04-03  0:10     ` Song, Xiongwei
2024-03-31  2:19 ` [PATCH 2/4] mm/slub: add slub_get_cpu_partial() helper xiongwei.song
2024-03-31  2:19 ` [PATCH 3/4] mm/slub: simplify get_partial_node() xiongwei.song
2024-04-02  9:41   ` Vlastimil Babka
2024-04-03  0:37     ` Song, Xiongwei
2024-04-03  7:25       ` Vlastimil Babka
2024-04-03 11:15         ` Song, Xiongwei
2024-03-31  2:19 ` [PATCH 4/4] mm/slub: don't read slab->cpu_partial_slabs directly xiongwei.song
2024-04-02  9:42   ` Vlastimil Babka
2024-04-03  0:11     ` Song, Xiongwei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox