projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a120ca7
)
engines/libaio: fix submit loop to use 'ld->queued' for exit
author
Jens Axboe
<axboe@fb.com>
Wed, 1 Oct 2014 14:42:27 +0000
(08:42 -0600)
committer
Jens Axboe
<axboe@fb.com>
Wed, 1 Oct 2014 14:42:27 +0000
(08:42 -0600)
We could have head == tail for a full ring, so use the
amount queued as the gauge instead. This would be very
hard to trigger, as it would require a full ring on entry
and the first submit would have to fail to submit anything
before we loop around.
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/libaio.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/libaio.c
b/engines/libaio.c
index ca7bfdef58a35a58d29de89a33d7176eef3e4cf7..6f625167e9b7d2f03350a72086fb67db1e421885 100644
(file)
--- a/
engines/libaio.c
+++ b/
engines/libaio.c
@@
-283,7
+283,7
@@
static int fio_libaio_commit(struct thread_data *td)
continue;
} else
break;
- } while (ld->
head != ld->tail
);
+ } while (ld->
queued
);
return ret;
}