Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message May 15, 2018

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 43864deb3b4e24d5570ee4cb16cb626e94ec0465:

iolog: default to good return (2018-04-26 22:45:04 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 540e235dcd276e63c57ca4bd35f70a0651e2d00e:

Merge branch 'master' of https://github.com/majianpeng/fio (2018-05-14 19:40:32 -0600)

----------------------------------------------------------------
Jens Axboe (1):
Merge branch 'master' of https://github.com/majianpeng/fio

Jianpeng Ma (1):
This partly revert 97bb54c9606c(add __load_ioengine() to separate ioengine loading from td context)

 ioengines.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

---

Diff of recent changes:

ioengines.c +6 -1
index 6ffd27f..d579682 100644
@@ -574,6 +574,7 @@ int td_io_get_file_size(struct thread_data *td, struct fio_file *f)
 int fio_show_ioengine_help(const char *engine)
 {
 	struct flist_head *entry;
+	struct thread_data td;
 	struct ioengine_ops *io_ops;
 	char *sep;
 	int ret = 1;
@@ -592,7 +593,10 @@ int fio_show_ioengine_help(const char *engine)
 		sep++;
 	}
 
-	io_ops = __load_ioengine(engine);
+	memset(&td, 0, sizeof(struct thread_data));
+	td.o.ioengine = (char *)engine;
+	io_ops = load_ioengine(&td);
+
 	if (!io_ops) {
 		log_info("IO engine %s not found\n", engine);
 		return 1;
@@ -603,5 +607,6 @@ int fio_show_ioengine_help(const char *engine)
 	else
 		log_info("IO engine %s has no options\n", io_ops->name);
 
+	free_ioengine(&td);
 	return ret;
 }