]> 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>
Fri, 30 Oct 2020 19:04:30 +0000 (15:04 -0400)
commit611bd8f86a1ee676dcd5333c7a620f68b6dfc8dc
tree61be5e1c31f5f14a11d89803232e5fd8e8fab2aa
parentda9683f694c119eef6772f0ab376bfbb601e6ea3
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