Recent changes (master)
The following changes since commit a120ca7f793b41532b04e3915fcd6646fa37bb4f:
engines/libaio: don't reap on EAGAIN and no pending events (2014-09-30 20:28:45 -0600)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to e3b4e568b362ec8d89243609e75763b37cf81b17:
engines/libaio: reset 'wait_start' on non-EAGAIN (2014-10-01 08:48:54 -0600)
----------------------------------------------------------------
Jens Axboe (3):
engines/libaio: fix submit loop to use 'ld->queued' for exit Bump IO engine version number
engines/libaio: reset 'wait_start' on non-EAGAIN
engines/libaio.c | 4 +++- ioengine.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-)
---
Diff of recent changes:
engines/libaio.c +3 -1
@@ -255,9 +255,11 @@ static int fio_libaio_commit(struct thread_data *td) ld->queued -= ret;ring_inc (ld, &ld->tail, ret); ret =0 ; + wait_start =0 ; }else if (ret == -EINTR || !ret) {if (!ret)io_u_mark_submit (td, ret); + wait_start =0 ;continue ; }else if (ret == -EAGAIN ) {/*
@@ -283,7 +285,7 @@ static int fio_libaio_commit(struct thread_data *td)continue ; }else break ; - }while (ld->head != ld->tail); + }while (ld->queued);return ret; }
ioengine.h +1 -1
@@ -15,7 +15,7 @@#include <guasi.h> #endif -#define FIO_IOOPS_VERSION 20 +#define FIO_IOOPS_VERSION 21enum {IO_U_F_FREE =1 <<0 ,