Re: [libvirt] [PATCH] virnetdevmacvlan.c: Introduce mutex for macvlan creation

2013-03-01 Thread Peter Krempa
On 02/28/13 22:27, Eric Blake wrote: On 02/28/2013 08:25 AM, Michal Privoznik wrote: Currently, after we removed the qemu driver lock, it may happen that two or more threads will start up a machine with macvlan and race over virNetDevMacVLanCreateWithVPortProfile(). However, there's a racy

Re: [libvirt] [PATCH] virnetdevmacvlan.c: Introduce mutex for macvlan creation

2013-03-01 Thread Daniel P. Berrange
On Thu, Feb 28, 2013 at 04:25:30PM +0100, Michal Privoznik wrote: Currently, after we removed the qemu driver lock, it may happen that two or more threads will start up a machine with macvlan and race over virNetDevMacVLanCreateWithVPortProfile(). However, there's a racy section in which we

[libvirt] [PATCH] virnetdevmacvlan.c: Introduce mutex for macvlan creation

2013-02-28 Thread Michal Privoznik
Currently, after we removed the qemu driver lock, it may happen that two or more threads will start up a machine with macvlan and race over virNetDevMacVLanCreateWithVPortProfile(). However, there's a racy section in which we are generating a sequence of possible device names and detecting if they