]> www.infradead.org Git - users/hch/misc.git/commit
maple_tree: use percpu sheaves for maple_node_cache
authorVlastimil Babka <vbabka@suse.cz>
Wed, 3 Sep 2025 12:59:55 +0000 (14:59 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:22:57 +0000 (09:22 +0200)
commit59faa4da7cd4565cbce25358495556b75bb37022
tree544867a8cda48d5bf58f8656502363ab86e955e3
parent3accabda4da1b00ba21dc18573a0a43e032e35f4
maple_tree: use percpu sheaves for maple_node_cache

Setup the maple_node_cache with percpu sheaves of size 32 to hopefully
improve its performance. Note this will not immediately take advantage
of sheaf batching of kfree_rcu() operations due to the maple tree using
call_rcu with custom callbacks. The followup changes to maple tree will
change that and also make use of the prefilled sheaves functionality.

Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
lib/maple_tree.c