Re: [Qemu-devel] [PATCH v5] blockdev: acquire aio_context for bitmap add/remove

2019-02-19 Thread John Snow
On 2/19/19 9:59 AM, Eric Blake wrote: > On 2/18/19 5:31 PM, John Snow wrote: >> When bitmaps are persistent, they may incur a disk read or write when bitmaps >> are added or removed. For configurations like virtio-dataplane, failing to >> acquire this lock will abort QEMU when disk IO occurs.

Re: [Qemu-devel] [PATCH v5] blockdev: acquire aio_context for bitmap add/remove

2019-02-19 Thread Eric Blake
On 2/18/19 5:31 PM, John Snow wrote: > When bitmaps are persistent, they may incur a disk read or write when bitmaps > are added or removed. For configurations like virtio-dataplane, failing to > acquire this lock will abort QEMU when disk IO occurs. > > We used to acquire aio_context as part of

[Qemu-devel] [PATCH v5] blockdev: acquire aio_context for bitmap add/remove

2019-02-18 Thread John Snow
When bitmaps are persistent, they may incur a disk read or write when bitmaps are added or removed. For configurations like virtio-dataplane, failing to acquire this lock will abort QEMU when disk IO occurs. We used to acquire aio_context as part of the bitmap lookup, so re-introduce the lock for