make ioengine specific command line options work
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 9 Oct 2013 15:32:34 +0000 (09:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Oct 2013 15:32:34 +0000 (09:32 -0600)
If the ioengine specific parameter is given on the command line,
unrelated value in thread_data.o will be corrupted unexpectedly.
Specifically, if libaio specific parameter userspace_reap is given
on the command line, thread_data.o.description will be set to 1.

This fixes it by passing the correct pointer of ioengine specific
options to the command line parser.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index 4b91f5289c5826c3f7dcc62aa34fe90c15286c9c..f26ff77647329a645f0fa4ead9eb9a58adcceba7 100644 (file)
--- a/options.c
+++ b/options.c
@@ -3603,7 +3603,7 @@ int fio_cmd_option_parse(struct thread_data *td, const char *opt, char *val)
 int fio_cmd_ioengine_option_parse(struct thread_data *td, const char *opt,
                                char *val)
 {
-       return parse_cmd_option(opt, val, td->io_ops->options, td);
+       return parse_cmd_option(opt, val, td->io_ops->options, td->eo);
 }
 
 void fio_fill_default_options(struct thread_data *td)