[PATCH] Kill ->cur_off, always just lseek() in sync ->io_prep
[fio.git] / fio-io.c
index 3183e8fd56220aa6064c3b41439e3c1abd4adb18..dee02ab5e067ba8bf74188d56f429f00a361b129 100644 (file)
--- a/fio-io.c
+++ b/fio-io.c
@@ -352,11 +352,9 @@ static struct io_u *fio_syncio_event(struct thread_data *td, int event)
 
 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;