* [PATCH v2] lib: radix_tree: Fix error in docs about locks
@ 2015-12-21 23:04 Adam Barth
0 siblings, 0 replies; only message in thread
From: Adam Barth @ 2015-12-21 23:04 UTC (permalink / raw)
To: trivial; +Cc: linux-kernel
This text refers to the "first 7 functions", which was correct when
written but became incorrect when Johannes Weiner added another function
to the list in 139e561660fe ("lib: radix_tree: tree node interface").
Remove the sentence because it doesn't add any additional information
and would need to be updated each time the list changes.
Signed-off-by: Adam Barth <aurorean@gmail.com>
---
Changes in v2:
- Removed the sentence entirely, as suggested by derRichard.
include/linux/radix-tree.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h
index 33170db..204aa02 100644
--- a/include/linux/radix-tree.h
+++ b/include/linux/radix-tree.h
@@ -154,10 +154,9 @@ do { \
* radix_tree_gang_lookup_tag_slot
* radix_tree_tagged
*
- * The first 7 functions are able to be called locklessly, using RCU. The
- * caller must ensure calls to these functions are made within rcu_read_lock()
- * regions. Other readers (lock-free or otherwise) and modifications may be
- * running concurrently.
+ * The caller must ensure calls to these functions (other than
+ * radix_tree_tagged) are made within rcu_read_lock() regions. Other readers
+ * (lock-free or otherwise) and modifications may be running concurrently.
*
* It is still required that the caller manage the synchronization and lifetimes
* of the items. So if RCU lock-free lookups are used, typically this would mean
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-21 23:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-21 23:04 [PATCH v2] lib: radix_tree: Fix error in docs about locks Adam Barth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox