io_u: ensure to invalidate cache on time_based random reads
authorJens Axboe <axboe@kernel.dk>
Thu, 31 May 2018 15:05:59 +0000 (09:05 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 May 2018 15:05:59 +0000 (09:05 -0600)
commit80f021501fda6a6244672bb89dd8221a61cee54b
tree7027bbf65237fcf58dba5ede7bab71be52ea552a
parentcf04b906fda16c6c14c420b71130a31d6580e9d8
io_u: ensure to invalidate cache on time_based random reads

We need to do this with the file reset and retrieval of a
new offset, not of it fails.

Fixes: 0bcf41cdc22df ("io_u: re-invalidate cache when looping around without file open/close")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c