Re: [PATCH v2 2/5] rosebush: Add new data structure

From: Markus Elfring
Date: Sat Jun 29 2024 - 15:46:12 EST



> +++ b/lib/rosebush.c
> @@ -0,0 +1,654 @@

> +int rbh_remove(struct rbh *rbh, u32 hash, void *p)
> +{

> + rcu_read_lock();
> + bucket = lock_bucket(rbh, hash);

> +rcu_unlock:
> + rcu_read_unlock();
> + return err;
> +}


Under which circumstances would you become interested to apply a statement
like “guard(rcu)();”?
https://elixir.bootlin.com/linux/v6.10-rc5/source/include/linux/rcupdate.h#L1093

Regards,
Markus