qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [Qemu-devel] [PATCH 09/17] util: add stats64 module


From: Paolo Bonzini
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH 09/17] util: add stats64 module
Date: Thu, 4 May 2017 09:38:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0


On 04/05/2017 09:36, Fam Zheng wrote:
>> +
>> +    /* If there is a concurrent writer, wait for it.  */
>> +    while (atomic_read(&s->lock) & 1) {
>> +        g_usleep(5);
> What's the difference of g_usleep() from cpu_relax() in
> qemu_co_mutex_lock_unlock?

cpu_relax() did not exist when I wrote this patch. :)  I'll change it.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]