lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] User-space RCU: call rcu_barrier() before dissociating helper thread?
@ 2021-04-29 13:49 Martin Wilck via lttng-dev
  2021-04-30 18:41 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Wilck via lttng-dev @ 2021-04-29 13:49 UTC (permalink / raw)
  To: lttng-dev

In multipath-tools, we are using a custom RCU helper thread, which is cleaned out
on exit:

https://github.com/opensvc/multipath-tools/blob/23a01fa679481ff1144139222fbd2c4c863b78f8/multipathd/main.c#L3058

I put a call to rcu_barrier() there in order to make sure all callbacks had finished
before detaching the helper thread.

Now we got a report that rcu_barrier() isn't available before user-space RCU 0.8 
(https://github.com/opensvc/multipath-tools/issues/5) (and RHEL7 / Centos7 
still has 0.7.16).

Question: was it over-cautious or otherwise wrong to call rcu_barrier() before
set_thread_call_rcu_data(NULL)? Can we maybe just skip this call? If no, what
would be the recommended way for liburcu < 0.8 to dissociate a helper thread?

(Note: I'm not currently subscribed to lttng-dev).

Regards and thanks,
Martin



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

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

end of thread, other threads:[~2021-05-05 21:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 13:49 [lttng-dev] User-space RCU: call rcu_barrier() before dissociating helper thread? Martin Wilck via lttng-dev
2021-04-30 18:41 ` Mathieu Desnoyers via lttng-dev
2021-05-05  7:54   ` Martin Wilck via lttng-dev
2021-05-05 14:46     ` Mathieu Desnoyers via lttng-dev
2021-05-05 18:07       ` Paul E. McKenney via lttng-dev
2021-05-05 21:30       ` Martin Wilck 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;
as well as URLs for NNTP newsgroup(s).