From 8a96c80eae18a3594a43cadd82a5807fd2f340cd Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Wed, 9 Oct 2013 09:32:34 -0600 Subject: [PATCH] make ioengine specific command line options work 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 Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 4b91f528..f26ff776 100644 --- 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) -- 2.25.1