gluster: use BlockDriverState's AioContext
commit6ee50af24b1478452fbbfc1cd8d78227c0e91cde
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:41 +0000 (8 16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (4 09:56 +0200)
tree391c482cb80f565ab248dad2af0c084d43de377b
parent63f0f45f2e89b60ff8245fec81328ddfde42a303
gluster: use BlockDriverState's AioContext

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 <bharata@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/gluster.c