Re: [libvirt] [PATCH 3/5] qemu: snapshot: Acquire job earlier on snapshot revert/delete

2014-09-06 Thread Eric Blake
On 09/03/2014 07:53 AM, Peter Krempa wrote: From: Jincheng Miao jm...@redhat.com The code would lookup the snapshot object before acquiring the job. This could lead to a crash as one thread could delete the snapshot object, while a second thread already had the reference. Signed-off-by:

[libvirt] [PATCH 3/5] qemu: snapshot: Acquire job earlier on snapshot revert/delete

2014-09-03 Thread Peter Krempa
From: Jincheng Miao jm...@redhat.com The code would lookup the snapshot object before acquiring the job. This could lead to a crash as one thread could delete the snapshot object, while a second thread already had the reference. Signed-off-by: Jincheng Miao jm...@redhat.com Signed-off-by: Peter