|
| From: | Paolo Bonzini |
| Subject: | Re: [PATCH 2/2] accel/tcg: Register a force_rcu notifier |
| Date: | Mon, 18 Oct 2021 11:18:31 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 15/10/21 18:12, Greg Kurz wrote:
+void tcg_cpus_force_rcu(Notifier *notify, void *data)
+{
+ CPUState *cpu = container_of(notify, CPUState, force_rcu);
+
Perhaps add a comment: /* Called with rcu_registry_lock held, using async_run_on_cpu ensudes that there are no deadlocks. */
Paolo
+ async_run_on_cpu(cpu, do_nothing, RUN_ON_CPU_NULL); +} +
| [Prev in Thread] | Current Thread | [Next in Thread] |