blockdev: acquire AioContext in hmp_commit()
commit84aa0140dd4f04f5d993f0db14c40da8d3de2706
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Nov 2015 17:27:23 +0000 (4 20:27 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 Nov 2015 10:07:10 +0000 (9 10:07 +0000)
tree2e7a4d24c00263d64daf8d6b94f617198d0fe649
parent6bf1faa84877514971a20bb180b0ae5270bee571
blockdev: acquire AioContext in hmp_commit()

This one slipped through.  Although we acquire AioContext when
committing all devices we don't for just a single device.

AioContext must be acquired before calling bdrv_*() functions to
synchronize access with other threads that may be using the AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c