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

2011-12-02 Thread Peter Krempa
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 t

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

2011-12-02 Thread Jiri Denemark
On Fri, Dec 02, 2011 at 14:06:06 +0100, Peter Krempa wrote: > Originaly, the code checked if another client is the queue and infered > ownership of the buck from that. Commit fa9595003d043df9f2efe95521c008 > added a separate variable to track the buck. That caused, that a new > call might enter cla

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

2011-12-02 Thread Peter Krempa
Originaly, the code checked if another client is the queue and infered ownership of the buck from that. Commit fa9595003d043df9f2efe95521c008 added a separate variable to track the buck. That caused, that a new call might enter claiming it has the buck, while another thread was signalled to take th