]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove smp_wmb() from mas_wmb_replace() maple_for6.2
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 14:06:29 +0000 (09:06 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:22:37 +0000 (16:22 -0500)
commit155095fd948acb5d9ad138d2b399625144e8e674
tree4a1c4e0493315d679a691b05c41e2dad66f37d91
parent260689cac33223e6563413bf3c481a9888674a6f
maple_tree: Remove smp_wmb() from mas_wmb_replace()

Since nodes now reused the pivots for tracking other dead nodes, the
smp_wmb() needed to be called sooner.  Remove the later call and rename
the mas_wmb_replace() function to mas_cleanup_replace() since it no
longer calls any write memory barriers.

This is an optimization fix for the maple tree.

Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c