]> git.ipfire.org Git - thirdparty/qemu.git/commit - block/iscsi.c
iscsi: implement .bdrv_detach/attach_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:42 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commit80cf6257668ec78537b02af44e059bdc46c30416
treeb130699483cf213496dac3bd38fc4da485369553
parent6ee50af24b1478452fbbfc1cd8d78227c0e91cde
iscsi: implement .bdrv_detach/attach_aio_context()

Drop the assumption that we're using the main AioContext for Linux
AIO.  Convert qemu_aio_set_fd_handler() to aio_set_fd_handler() and
timer_new_ms() to aio_timer_new().

The .bdrv_detach/attach_aio_context() interfaces also need to be
implemented to move the fd and timer from the old to the new AioContext.

Cc: Peter Lieven <pl@kamp.de>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
block/iscsi.c