On Mon, 07/13 13:31, Paolo Bonzini wrote: > Patch 2 fixes the problem, whereby threads were not being registered > but still happily used RCU. Patch 1 simplifies the registration by > making rcu_unregister_thread automatic. Patch 3 avoids having the > same bug in the future.
Reviewed-by: Fam Zheng <f...@redhat.com> > > Paolo > > Paolo Bonzini (3): > rcu: automatically unregister threads when they exit > rcu: actually register threads that have RCU read-side critical > sections > rcu: detect missing rcu_register_thread() > > cpus.c | 6 ++++++ > include/qemu/rcu.h | 4 +++- > iothread.c | 3 +++ > migration/migration.c | 3 +++ > tests/rcutorture.c | 10 ---------- > tests/test-rcu-list.c | 2 ++ > util/rcu.c | 30 ++++++++++++++++++++++++++++-- > 7 files changed, 45 insertions(+), 13 deletions(-) > > -- > 2.4.3 > >