Re: [Qemu-block] [PATCH v4 1/1] blockdev: acquire aio_context for bitmap add/remove

2019-02-18 Thread John Snow
On 2/18/19 4:55 PM, Eric Blake wrote: > On 2/18/19 3:42 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-block] [PATCH v4 1/1] blockdev: acquire aio_context for bitmap add/remove

2019-02-18 Thread Eric Blake
On 2/18/19 3:42 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 t

[Qemu-block] [PATCH v4 1/1] 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