[PATCH] syslet engine: use pread instead lseek+read
And similar for write. Saves executing an atom.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index ff59b46..2d30324 100644
--- a/fio.h
+++ b/fio.h
@@ -70,7 +70,6 @@
#ifdef FIO_HAVE_SYSLET
struct syslet_req {
struct syslet_uatom atom;
- unsigned long cmd;
long ret;
};
#endif
@@ -90,8 +89,7 @@
struct sg_io_hdr hdr;
#endif
#ifdef FIO_HAVE_SYSLET
- struct syslet_req rw_atom;
- struct syslet_req seek_atom;
+ struct syslet_req req;
#endif
};
struct timeval start_time;