linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] SLUB: improve filling cpu partial a bit in get_partial_node()
@ 2024-04-04  5:58 xiongwei.song
  2024-04-04  5:58 ` [PATCH v2 1/3] mm/slub: remove the check of !kmem_cache_has_cpu_partial() xiongwei.song
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: xiongwei.song @ 2024-04-04  5:58 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 remove #ifdef of
CONFIG_SLUB_CPU_PARTIAL. Please check patch 2 and patch 3.

Also add the comparison in patch 3 for when breaking from filling cpu
partial loop with ">" or ">=". For more details, please check the
patch 3 inside.

No functionality changed.

Changes in v2:
 - Refine the commit message(from Vlastimil Babka's comments).
 - Refine the check conditions of filling cpu partial(as Vlastimil Babka
   suggested).
 - drop patch 4 of v1.

v1:
 - https://lore.kernel.org/lkml/20240331021926.2732572-4-xiongwei.song@windriver.com/T/

Before v1:
 - 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 (3):
  mm/slub: remove the check of !kmem_cache_has_cpu_partial()
  mm/slub: add slub_get_cpu_partial() helper
  mm/slub: simplify get_partial_node()

 mm/slub.c | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-04-07  1:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04  5:58 [PATCH v2 0/3] SLUB: improve filling cpu partial a bit in get_partial_node() xiongwei.song
2024-04-04  5:58 ` [PATCH v2 1/3] mm/slub: remove the check of !kmem_cache_has_cpu_partial() xiongwei.song
2024-04-04  5:58 ` [PATCH v2 2/3] mm/slub: add slub_get_cpu_partial() helper xiongwei.song
2024-04-04  5:58 ` [PATCH v2 3/3] mm/slub: simplify get_partial_node() xiongwei.song
2024-04-04  9:26   ` Vlastimil Babka
2024-04-07  1:47     ` Song, Xiongwei

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