The comment predates fio's support for checking whether a specific
option was set, we have the power to check this properly now.
Signed-off-by: Jens Axboe <axboe@fb.com>
td->o.odirect = 1;
/*
- * we don't know if this option was set or not. it defaults to 1,
- * so we'll just guess that we should override it if it's still 1
+ * If depth wasn't manually set, use probed depth
*/
- if (td->o.iodepth == 1)
+ if (!fio_option_is_set(&td->o, iodepth))
td->o.iodepth = td->o.iodepth_low = depth;
return 0;