]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix rcu_dereference usages
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 2 Mar 2020 21:16:00 +0000 (16:16 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:26 +0000 (12:28 -0500)
commit887077c48519124ec88e7a6145a473720af7ed04
treecce12a61e517976f1db089a7ab16f5c0efa113b5
parentd1cb2dc4b078ea0408a29be6d464b106ac3ada00
maple_tree: Fix rcu_dereference usages

Enabling CONFIG_PROVE_LOCKING reveals some compilation errors and
running it shows that loading the root pointer needs to be done with
rcu_dereference_protected() (which will permit the load if the lock is
held) instead of a plain rcu_dereference() (which permits the load if
the rcu read lock is held).

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/maple_tree.c