summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-27 10:23:12 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-27 10:23:12 -0700
commitbef74db41fb5a1607fd55cb86544165fc08acac1 (patch)
tree30d65c10141b3635e6451bbe6900bf7f671de6c2
parentb4d867339d3e89ca54104df104f830aa374e31c0 (diff)
parent6a3f4e6cc07f7e6cee1fb70aae7c88f2b40b9ac2 (diff)
downloadfio-bef74db41fb5a1607fd55cb86544165fc08acac1.tar.gz
fio-bef74db41fb5a1607fd55cb86544165fc08acac1.tar.bz2
Merge branch 'engine-rados-fix-first' of https://github.com/aclamk/fio
* 'engine-rados-fix-first' of https://github.com/aclamk/fio: engines/rados: fix error with getting last instead of first element from list
-rw-r--r--engines/rados.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/rados.c b/engines/rados.c
index cde538b9..30fcebb5 100644
--- a/engines/rados.c
+++ b/engines/rados.c
@@ -342,7 +342,7 @@ int fio_rados_getevents(struct thread_data *td, unsigned int min,
}
assert(!flist_empty(&rados->completed_operations));
- fri = flist_last_entry(&rados->completed_operations, struct fio_rados_iou, list);
+ fri = flist_first_entry(&rados->completed_operations, struct fio_rados_iou, list);
assert(fri->completion);
assert(rados_aio_is_complete(fri->completion));
if (fri->write_op != NULL) {