[libvirt] [PATCH] client: Check if other thread claims it has the buck before claiming it.

Peter Krempa pkrempa at redhat.com
Fri Dec 2 13:25:14 UTC 2011


On 12/02/2011 02:21 PM, Jiri Denemark wrote:
>> +
>> +        /* We need to re-check if the buck has been passed to this thread
>> +         * as this thread might have been signalled to wake up, but the another
>
> Just remove "the" from "but the another".
>
>> +         * call might acquire the lock before this thread manages to wake up.
>> +         * This could cause that two threads claim they have the buck */
>> +        goto recheck;
>>       }
>>
>>       VIR_DEBUG("We have the buck %p %p", client->waitDispatch, thiscall);
>
> ACK
>
> Jirka
>

Thanks, fixed && pushed.

Peter




More information about the libvir-list mailing list