summaryrefslogtreecommitdiff
path: root/include/linux/srcu.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-09-22 01:13:01 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-29 22:18:18 -0400
commit9f20109509c553feeb57600a8a3b5e3177b43f6d (patch)
tree1153e5b34dad50e9816c4b705a8fed876b7a065f /include/linux/srcu.h
parent7a98f526b52e0ad9a13c77edd1fda528e23640da (diff)
Update bcachefs sources to 438696e03da7 bcachefs: rename version -> bversion for big endian builds
Diffstat (limited to 'include/linux/srcu.h')
-rw-r--r--include/linux/srcu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index 12719eb5..b93cb8e3 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -19,7 +19,7 @@ static inline int srcu_read_lock(struct srcu_struct *ssp)
static inline bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
{
- return false;
+ return true;
}
static inline unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
@@ -58,7 +58,7 @@ static inline void cleanup_srcu_struct(struct srcu_struct *ssp) {}
static inline void call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
rcu_callback_t func)
{
- func(rhp);
+ call_rcu(rhp, func);
}
static inline int init_srcu_struct(struct srcu_struct *ssp)