]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Add smp_rmb() to dead node detection
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 02:37:29 +0000 (21:37 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:57:53 +0000 (15:57 -0500)
commit2f38e34ea80f7c6525f518ff567c29f6e63266a6
tree767d764e4c1c1ee76bfc12571f1fada1b708d423
parentb5feba1255a8d0a91a168e623131807bf66720d9
maple_tree: Add smp_rmb() to dead node detection

Add an smp_rmb() before reading the parent pointer to ensure that
anything read from the node prior to the parent pointer hasn't been
reordered ahead of this check.

The is necessary for RCU mode.

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