Skip to contentSkip to conversation

make ioengine specific command line options work

PATCH Applied Akinobu Mita 2 participants 2 messages Oct 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
* v2
- Update commit log to clarify that this problem only happens with the command line options.

 options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
options.c +1 -1
index 4b91f52..f26ff77 100644
@@ -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)
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 9 lines · Akinobu Mita

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.

Thanks, applied!

Signature · 1 line
Jens Axboe