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

Markus Elfring Markus.Elfring at web.de
Sat Jun 29 12:45:46 PDT 2024


…
> +++ 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



More information about the maple-tree mailing list