diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-13 23:22:48 +0300 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-14 05:44:09 +0300 |
commit | 12320d0ff1c9d5582f5c35e4bb8b9c70c475fd71 (patch) | |
tree | 80c8c73e8d1e098a7c5c266bd67214c2293f8f63 /include/linux/radix-tree.h | |
parent | c0cdbf819cd76d977486b4634ea1b4ede2434413 (diff) | |
download | linux-12320d0ff1c9d5582f5c35e4bb8b9c70c475fd71.tar.xz |
radix-tree: Add rcu_dereference and rcu_assign_pointer calls
Some of these have been missing for many years. Others were recently
introduced by me. Fortunately, we have tools that help us find such
things.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'include/linux/radix-tree.h')
-rw-r--r-- | include/linux/radix-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index d250059bbfa4..0b502de7d23a 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h @@ -561,7 +561,7 @@ radix_tree_next_slot(void **slot, struct radix_tree_iter *iter, unsigned flags) return NULL; found: - if (unlikely(radix_tree_is_internal_node(*slot))) + if (unlikely(radix_tree_is_internal_node(rcu_dereference_raw(*slot)))) return __radix_tree_next_slot(slot, iter, flags); return slot; } |