[Qemu-devel] [PATCH v4 04/19] block: move aio initialization into a helper function

2012-09-20 Thread Jeff Cody
Move AIO initialization for raw-posix block driver into a helper function. In addition to just code motion, the aio_ctx pointer is checked for NULL, prior to calling laio_init(), to make sure laio_init() is only run once. Signed-off-by: Jeff Cody --- block/raw-posix.c | 53 +

Re: [Qemu-devel] [PATCH v4 04/19] block: move aio initialization into a helper function

2012-09-21 Thread Kevin Wolf
Am 20.09.2012 21:13, schrieb Jeff Cody: > Move AIO initialization for raw-posix block driver into a helper function. > > In addition to just code motion, the aio_ctx pointer is checked for NULL, > prior to calling laio_init(), to make sure laio_init() is only run once. > > Signed-off-by: Jeff Cod