Signed-off-by: Jens Axboe <axboe@fb.com>
if (!strncmp(opt, "name", 4) && td) {
ret = add_job(td, td->o.name ?: "fio", 0, 0, client_type);
if (ret)
if (!strncmp(opt, "name", 4) && td) {
ret = add_job(td, td->o.name ?: "fio", 0, 0, client_type);
if (ret)
td = get_new_job(global, &def_thread, 1);
if (!td || ioengine_load(td))
td = get_new_job(global, &def_thread, 1);
if (!td || ioengine_load(td))
fio_options_set_ioengine_opts(l_opts, td);
}
fio_options_set_ioengine_opts(l_opts, td);
}
if (!ret && !strcmp(opt, "ioengine")) {
free_ioengine(td);
if (ioengine_load(td))
if (!ret && !strcmp(opt, "ioengine")) {
free_ioengine(td);
if (ioengine_load(td))
fio_options_set_ioengine_opts(l_opts, td);
}
break;
fio_options_set_ioengine_opts(l_opts, td);
}
break;
+out_free:
+ if (pid_file)
+ free(pid_file);
+