summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kupczyk <akupczyk@redhat.com>2019-11-27 10:18:32 -0500
committerAdam Kupczyk <akupczyk@redhat.com>2019-11-27 10:18:32 -0500
commit6a3f4e6cc07f7e6cee1fb70aae7c88f2b40b9ac2 (patch)
tree30d65c10141b3635e6451bbe6900bf7f671de6c2
parentb4d867339d3e89ca54104df104f830aa374e31c0 (diff)
downloadfio-6a3f4e6cc07f7e6cee1fb70aae7c88f2b40b9ac2.tar.gz
fio-6a3f4e6cc07f7e6cee1fb70aae7c88f2b40b9ac2.tar.bz2
engines/rados: fix error with getting last instead of first element from list
A thinko has popped in implementation. Consumer function `getevent()` did pick last (newest) instead of first (oldest). Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
-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) {