All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wen Congyang <wency@cn.fujitsu.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	Wen Congyang <ghostwcy@gmail.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] rcu: actually register threads that have RCU read-side critical sections
Date: Fri, 24 Jul 2015 14:30:24 +0800	[thread overview]
Message-ID: <55B1DB80.90005@cn.fujitsu.com> (raw)
In-Reply-To: <55B1D9B5.90901@redhat.com>

On 07/24/2015 02:22 PM, Paolo Bonzini wrote:
> 
> 
> On 24/07/2015 07:56, Wen Congyang wrote:
>> @@ -115,9 +116,12 @@ static void wait_for_readers(void)
>>          }
>>  
>>          /* Wait for one thread to report a quiescent state and
>> -         * try again.
>> +         * try again. Release rcu_gp_lock, so rcu_(un)register_thread()
>> +         * doesn't wait too much time.
>>           */
>> +        qemu_mutex_unlock(&rcu_gp_lock);
>>          qemu_event_wait(&rcu_gp_event);
>> +        qemu_mutex_lock(&rcu_gp_lock);
>>      }
>>  
> 
> So in this case rcu_unregister_thread could actually remove the node
> from synchronize_rcu's qsreaders, not just from registry.  That's a bit
> tricky, but it should work.  Please add a comment, however.
> 
> Also, please rename "rcu_gp_lock" as well to rcu_registry_lock.  We'll
> get the patches in QEMU 2.5.


OK, I will do it.

Thanks
Wen Congyang

> 
> Paolo
> .
> 

      reply	other threads:[~2015-07-24  6:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 14:18 [Qemu-devel] [PATCH] rcu: actually register threads that have RCU read-side critical sections Paolo Bonzini
2015-07-23  2:56 ` Wen Congyang
2015-07-23  5:35   ` Paolo Bonzini
2015-07-23 10:30 ` Christian Borntraeger
2015-07-23 10:42   ` Paolo Bonzini
2015-07-23 11:04     ` Wen Congyang
2015-07-23 11:08       ` Paolo Bonzini
2015-07-23 12:59         ` Wen Congyang
2015-07-23 16:58           ` Paolo Bonzini
2015-07-24  3:55             ` Wen Congyang
2015-07-24  5:56             ` Wen Congyang
2015-07-24  6:22               ` Paolo Bonzini
2015-07-24  6:30                 ` Wen Congyang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B1DB80.90005@cn.fujitsu.com \
    --to=wency@cn.fujitsu.com \
    --cc=borntraeger@de.ibm.com \
    --cc=ghostwcy@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.