summaryrefslogtreecommitdiff
path: root/kern/rdxtree.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-20 23:00:56 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-20 23:01:36 +0100
commitfa5142c3f383241942fb8fb6de84153fc0286a6e (patch)
tree44525a5ed99ca1a8910c7c935f4c51a2350ce319 /kern/rdxtree.h
parent326118bf300cf096cee04cb0a64789151ef8e273 (diff)
kern/llsync: remove module
Diffstat (limited to 'kern/rdxtree.h')
-rw-r--r--kern/rdxtree.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/kern/rdxtree.h b/kern/rdxtree.h
index 1430208d..f19f3492 100644
--- a/kern/rdxtree.h
+++ b/kern/rdxtree.h
@@ -19,8 +19,7 @@
*
* In addition to the standard insertion operation, this implementation can
* allocate keys for the caller at insertion time. It also allows lookups to
- * occur concurrently with updates through the use of lockless synchronization
- * (see the llsync module).
+ * occur concurrently with updates using RCU.
*/
#ifndef _KERN_RDXTREE_H
@@ -30,7 +29,7 @@
#include <stdint.h>
#include <kern/init.h>
-#include <kern/llsync.h>
+#include <kern/rcu.h>
typedef uint64_t rdxtree_key_t;
@@ -160,7 +159,7 @@ rdxtree_lookup_slot(const struct rdxtree *tree, rdxtree_key_t key)
static inline void *
rdxtree_load_slot(void **slot)
{
- return llsync_load_ptr(*slot);
+ return rcu_load_ptr(*slot);
}
/*