Re: [Qemu-devel] [PATCH 07/22] gluster: use BlockDriverState's AioContext

2014-05-05 Thread Bharata B Rao
On Thu, May 01, 2014 at 04:54:31PM +0200, Stefan Hajnoczi wrote: > Drop the assumption that we're using the main AioContext. Use > aio_bh_new() instead of qemu_bh_new(). > > The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces > are not needed since no fd handlers, timers, or

[Qemu-devel] [PATCH 07/22] gluster: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Use aio_bh_new() instead of qemu_bh_new(). The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces are not needed since no fd handlers, timers, or BHs stay registered when requests have been drained. Cc: Bharata B Rao Si