From a14d39d7ac45eebe45ed0772d1ed837f15b15af4 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 26 Apr 2021 19:40:09 -0400 Subject: 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 --- include/linux/rhashtable.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/rhashtable.h') 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); } /** -- cgit v1.2.3