options: flow should parse as FIO_OPT_INT
authorJens Axboe <axboe@kernel.dk>
Mon, 31 Aug 2020 15:07:12 +0000 (09:07 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Aug 2020 15:07:12 +0000 (09:07 -0600)
commit20c7a244e75e4aa705a31a74e7067de4c890dff7
tree918b7131c07f93344cc2b2a4c208640e21912f98
parent21c454667adf105c8ddc602865f08d9009da7a44
options: flow should parse as FIO_OPT_INT

It's an unsigned int, if we parse it as FIO_OPT_ULL then we clobber
the variable around it in the options struct. This is apparent when
running the examples/flow.fio job file, as flow_sleep=1000 is set
before flow, but gets clobbered when flow is set. This results in a
flow_sleep value of 0 instead of 1000.

Fixes: d4e74fda98b6 ("flow: add ability for weight-based flow control on multiple jobs")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
cconv.c
options.c