Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] RCU API usage from call_rcu callbacks?
@ 2023-03-22 11:08 Ondřej Surý via lttng-dev
  2023-03-22 13:57 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: Ondřej Surý via lttng-dev @ 2023-03-22 11:08 UTC (permalink / raw)
  To: lttng-dev

Hi,

the documentation is pretty silent on this, and asking here is probably going to be faster
than me trying to use the source to figure this out.

Is it legal to call_rcu() from within the call_rcu() callback?

What about the other RCU (and CDS) API calls?

How does that interact with create_call_rcu_data()?  I have <n> event loops and I am
initializing <n> 1:1 call_rcu helper threads as I need to do some per-thread initialization
as some of the destroy-like functions use random numbers (don't ask).

If it's legal to call_rcu() from call_rcu thread, which thread is going to be used?

Thank you,
Ondrej
--
Ondřej Surý (He/Him)
ondrej@sury.org

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-22 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 11:08 [lttng-dev] RCU API usage from call_rcu callbacks? Ondřej Surý via lttng-dev
2023-03-22 13:57 ` Mathieu Desnoyers via lttng-dev
2023-03-22 14:45   ` Paul E. McKenney via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox