summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 15:22:48 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 21:44:09 -0500
commit12320d0ff1c9d5582f5c35e4bb8b9c70c475fd71 (patch)
tree80c8c73e8d1e098a7c5c266bd67214c2293f8f63 /include
parentc0cdbf819cd76d977486b4634ea1b4ede2434413 (diff)
downloadlinux-12320d0ff1c9d5582f5c35e4bb8b9c70c475fd71.tar.gz
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')
-rw-r--r--include/linux/radix-tree.h2
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;
}