projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30e63c
)
aioring: remove qd > 1 restriction
author
Jens Axboe
<axboe@kernel.dk>
Thu, 13 Dec 2018 04:10:25 +0000
(21:10 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 13 Dec 2018 04:10:25 +0000
(21:10 -0700)
Just add the extra ring entry we need in ->init().
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/aioring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/aioring.c
b/engines/aioring.c
index e434387c6bd43e8a60010fc0015c4d15721b5ca4..1598cc129a6078eee0e77159be28c15bc928ef07 100644
(file)
--- a/
engines/aioring.c
+++ b/
engines/aioring.c
@@
-483,10
+483,8
@@
static int fio_aioring_init(struct thread_data *td)
{
struct aioring_data *ld;
- if (td->o.iodepth <= 1) {
- printf("aio-ring: needs a minimum QD of 2\n");
- return 1;
- }
+ /* ring needs an extra entry, add one to achieve QD set */
+ td->o.iodepth++;
ld = calloc(1, sizeof(*ld));