fio: register pvsync2 engine correctly
authorJon Derrick <jonathan.derrick@intel.com>
Wed, 30 Mar 2016 22:17:55 +0000 (16:17 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 2 Apr 2016 02:56:52 +0000 (20:56 -0600)
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 <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sync.c
options.c

index 0b0d1a756c3a8eafd0f74c7b6f990ae8331d90d2..260ef664dd60d4f7b1aa9d21ccacc5794601398d 100644 (file)
@@ -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
 }
index 062abb4e163251b540b3dddcbdf91bcba1d2302c..b6c980eef834270db3d677c39391d9c9ec934b3d 100644 (file)
--- 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",
                          },