Re: [Qemu-devel] [PATCH 2/3] blockdev: acquire AioContext in hmp_commit()

2015-11-06 Thread Stefan Hajnoczi
On Wed, Nov 04, 2015 at 08:27:23PM +0300, Denis V. Lunev wrote: > From: Stefan Hajnoczi > > 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 > synchroniz

[Qemu-devel] [PATCH 2/3] blockdev: acquire AioContext in hmp_commit()

2015-11-04 Thread Denis V. Lunev
From: Stefan Hajnoczi 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: