mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
maple_tree: remove extra smp_wmb() from mas_dead_leaves()
commit8372f4d83f
upstream. 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:54a611b605
("Maple Tree: add new data structure") Cc: stable@vger.kernel.org Signed-off-by: Liam Howlett <Liam.Howlett@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cc2f2507f3
commit
d3af5f8a50
1 changed files with 0 additions and 1 deletions
|
@ -5495,7 +5495,6 @@ unsigned char mas_dead_leaves(struct ma_state *mas, void __rcu **slots,
|
|||
break;
|
||||
|
||||
mte_set_node_dead(entry);
|
||||
smp_wmb(); /* Needed for RCU */
|
||||
node->type = type;
|
||||
rcu_assign_pointer(slots[offset], node);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue