[libvirt] [PATCH 3/5] qemu: snapshot: Acquire job earlier on snapshot revert/delete
Eric Blake
eblake at redhat.com
Sat Sep 6 19:40:22 UTC 2014
On 09/03/2014 07:53 AM, Peter Krempa wrote:
> From: Jincheng Miao <jmiao at 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 <jmiao at redhat.com>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/qemu/qemu_driver.c | 30 +++++++++++++++---------------
> 1 file changed, 15 insertions(+), 15 deletions(-)
>
ACK
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140906/38e8cdd4/attachment-0001.sig>
More information about the libvir-list
mailing list