From: Jon Derrick Date: Wed, 30 Mar 2016 22:17:55 +0000 (-0600) Subject: fio: register pvsync2 engine correctly X-Git-Tag: fio-2.9~12 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=526c403dc9b892ae1dda6ebb2a0f2d5883795d17 fio: register pvsync2 engine correctly I'm experimenting with the new syscalls and noticed fio's support was incomplete. This patch fixes some of those issues. Signed-off-by: Jon Derrick Signed-off-by: Jens Axboe --- diff --git a/engines/sync.c b/engines/sync.c index 0b0d1a75..260ef664 100644 --- a/engines/sync.c +++ b/engines/sync.c @@ -453,6 +453,9 @@ static void fio_init fio_syncio_register(void) #ifdef CONFIG_PWRITEV register_ioengine(&ioengine_pvrw); #endif +#ifdef CONFIG_PWRITEV2 + register_ioengine(&ioengine_pvrw2); +#endif } static void fio_exit fio_syncio_unregister(void) @@ -463,4 +466,7 @@ static void fio_exit fio_syncio_unregister(void) #ifdef CONFIG_PWRITEV unregister_ioengine(&ioengine_pvrw); #endif +#ifdef CONFIG_PWRITEV2 + unregister_ioengine(&ioengine_pvrw2); +#endif } diff --git a/options.c b/options.c index 062abb4e..b6c980ee 100644 --- a/options.c +++ b/options.c @@ -1471,7 +1471,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .help = "Use preadv/pwritev", }, #endif -#ifdef CONFIG_PWRITEV +#ifdef CONFIG_PWRITEV2 { .ival = "pvsync2", .help = "Use preadv2/pwritev2", },