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)
- td->o.iodepth = depth;
+ if (!fio_option_is_set(&td->o, iodepth))
+ td->o.iodepth = td->o.iodepth_low = depth;
return 0;
err: