----- On Apr 13, 2021, at 11:19 PM, lttng-dev lttng-dev@lists.lttng.org wrote:
> Hello all, > > I have two different entities that are both protected by QSBR rcu: a policy > and > a hashtable. In the reclamation thread for the policy I would like to take a > read lock so that I can safely iterate through the hashtable. I dont see > anything wrong with this, but I just wanted to make sure it was ok since > taking > an rcu read lock in an rcu reclamation thread seems like it may be a bit > suspect. Thanks for any insights, let me know if clarification is needed! When you say "the reclamation thread for the policy", do you refer to a call-rcu worker thread ? Also, you are aware that RCU read-side lock/unlock are effectively no-ops for QSBR rcu, right ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev