We want to check for == 1, not != 1. Also set iodepth_low, like
we would have done for a "normal" job file.
Signed-off-by: Jens Axboe <axboe@fb.com>
* 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 (td->o.iodepth != 1)
- td->o.iodepth = depth;
+ if (td->o.iodepth == 1)
+ td->o.iodepth = td->o.iodepth_low = depth;
return 0;
err:
if (!o->max_bs[DDIR_TRIM])
o->max_bs[DDIR_TRIM] = o->bs[DDIR_TRIM];
-
o->rw_min_bs = min(o->min_bs[DDIR_READ], o->min_bs[DDIR_WRITE]);
o->rw_min_bs = min(o->min_bs[DDIR_TRIM], o->rw_min_bs);