io_u: reset file to initial offset
authorJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 20:51:03 +0000 (14:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 20:51:03 +0000 (14:51 -0600)
commitc89daa4a98e6f3749ffc75b727a77cc061a0a454
tree4f5793e3324708e983f1a171e8bfc670fc0e687f
parent17373ce2f38aa0d788d5c604cefd36a367bbbc27
io_u: reset file to initial offset

Don't assume that initial offset is 0, we should use the set
f->file_offset when resetting.

Fixes: 17373ce2f38a ("io_u: wrap to beginning when end-of-file is reached for time_based")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c