]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: remove extra smp_wmb() from mas_dead_leaves()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 27 Feb 2023 17:36:03 +0000 (09:36 -0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 24 Mar 2023 15:18:37 +0000 (11:18 -0400)
commita147a87693a3b35f06cf292e851681f2e9a5b82a
tree6e07802e092f7fa63ccea4fa7342467c6c7942b3
parentb317d0932e88d451fe3c20c9f83c3e60a66f80be
maple_tree: remove extra smp_wmb() from mas_dead_leaves()

The call to mte_set_dead_node() before the smp_wmb() already calls
smp_wmb() so this is not needed.  This is an optimization for the RCU mode
of the maple tree.

Link: https://lkml.kernel.org/r/20230227173632.3292573-5-surenb@google.com
Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Cc: stable@vger.kernel.org
Signed-off-by: Liam Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c