backend: ensure that fio_io_sync() commits IN on queued status
authorJens Axboe <axboe@fb.com>
Thu, 25 Feb 2016 16:04:06 +0000 (09:04 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 25 Feb 2016 16:04:06 +0000 (09:04 -0700)
commit42ff945ce285e9864cdafe32e27e8ef421ea5aab
tree6a1b29a0d370ae86cd95466855a64c99680ef889
parenta6cb85e25b31553aab043fe763ce4c999197dcff
backend: ensure that fio_io_sync() commits IN on queued status

If we get a FIO_Q_QUEUED back, we need to commit pending IO
before we wait for it. Otherwise we trigger this bug:

fio: ioengines.c:257: td_io_getevents: Assertion `td->io_u_in_flight >= r' failed.

Reported-by: Andrey Kuzmin <andrey.v.kuzmin@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c