summaryrefslogtreecommitdiff
path: root/include/linux/rhashtable.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-26 19:40:09 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-04-26 20:18:47 -0400
commita14d39d7ac45eebe45ed0772d1ed837f15b15af4 (patch)
treee05a03cfe138fde9f0bceae21f244aaf00c5d9f5 /include/linux/rhashtable.h
parentedc3ffe8f25506e60218aa6eb5cbcd3a019f6210 (diff)
bit_spinlocks now use futexes
Spinlocks aren't a good idea in userspace, where we can't actually disable preemption. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'include/linux/rhashtable.h')
-rw-r--r--include/linux/rhashtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 6cf8c257..c5e717bf 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -395,6 +395,7 @@ static inline void rht_assign_unlock(struct bucket_table *tbl,
rcu_assign_pointer(*bkt, (void *)obj);
preempt_enable();
__release(bitlock);
+ bit_spin_wake(0, (unsigned long *) bkt);
}
/**