mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
rcu: actually register threads that have RCU read-side critical sections
Otherwise, grace periods are detected too early! Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c170aad8b0
commit
ab28bd2312
5 changed files with 21 additions and 0 deletions
|
@ -216,6 +216,8 @@ static void *call_rcu_thread(void *opaque)
|
|||
{
|
||||
struct rcu_head *node;
|
||||
|
||||
rcu_register_thread();
|
||||
|
||||
for (;;) {
|
||||
int tries = 0;
|
||||
int n = atomic_read(&rcu_call_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue