Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Nov 29, 2018

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 4cf30b66c62f3f5e6501390d564cf0d966823591:

workqueue: update IO counters promptly after handling IO (2018-11-26 09:16:52 -0700)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to c36210b443a37c53978bbea88f1dabb0b61799d7:

engines/libaio: use maximum buffer size for fixed user bufs (2018-11-27 19:43:30 -0700)

----------------------------------------------------------------
Jens Axboe (2):
engines/libaio: add preliminary support for pre-mapped IO buffers engines/libaio: use maximum buffer size for fixed user bufs

 backend.c        |  3 +++
 engines/libaio.c | 73 ++++++++++++++++++++++++++++++++++++++++----------------
 ioengines.h      |  3 ++-
 3 files changed, 57 insertions(+), 22 deletions(-)

---

Diff of recent changes:

backend.c +3 -0
index 2f103b3..2f46329 100644
@@ -1704,6 +1704,9 @@ static void *thread_main(void *data)
 	if (init_io_u(td))
 		goto err;
 
+	if (td->io_ops->post_init && td->io_ops->post_init(td))
+		goto err;
+
 	if (o->verify_async && verify_async_init(td))
 		goto err;
 
engines/libaio.c +52 -21

138 lines not on this page · raw message

ioengines.h +2 -1
index feb21db..b9cd33d 100644
@@ -7,7 +7,7 @@
 #include "flist.h"
 #include "io_u.h"
 
-#define FIO_IOOPS_VERSION	24
+#define FIO_IOOPS_VERSION	25
 
 /*
  * io_ops->queue() return values
@@ -25,6 +25,7 @@ struct ioengine_ops {
 	int flags;
 	int (*setup)(struct thread_data *);
 	int (*init)(struct thread_data *);
+	int (*post_init)(struct thread_data *);
 	int (*prep)(struct thread_data *, struct io_u *);
 	enum fio_q_status (*queue)(struct thread_data *, struct io_u *);
 	int (*commit)(struct thread_data *);