commit | 77cf8455a12a36b060b1a7085ba2de7e42b3966f | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Thu Dec 08 20:09:36 2005 +0100 |
committer | Jens Axboe <axboe@suse.de> | Thu Dec 08 20:09:36 2005 +0100 |
tree | d9977f2621e61235fac5278a90b25b0cdb86d4fd | |
parent | f5d3e5ec43653859e744225cc585757e77e4dbdc [diff] [blame] |
[PATCH] Kill ->cur_off, always just lseek() in sync ->io_prep
diff --git a/fio-io.c b/fio-io.c index 3183e8f..dee02ab 100644 --- a/fio-io.c +++ b/fio-io.c
@@ -352,11 +352,9 @@ static int fio_syncio_prep(struct thread_data *td, struct io_u *io_u) { - if (td->cur_off != io_u->offset) { - if (lseek(td->fd, io_u->offset, SEEK_SET) == -1) { - td_verror(td, errno); - return 1; - } + if (lseek(td->fd, io_u->offset, SEEK_SET) == -1) { + td_verror(td, errno); + return 1; } return 0;