projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t/io_uring: ensure to use the right opcode for fixed buffers
[fio.git]
/
t
/
io_uring.c
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 6405536006ce3ff7386d6da26137196b2c770ca0..fb2654a32234d45bab8a94b7a1447db2101dc08f 100644
(file)
--- a/
t/io_uring.c
+++ b/
t/io_uring.c
@@
-107,7
+107,10
@@
static void init_io(struct submitter *s, int fd, unsigned index)
lrand48_r(&s->rand, &r);
offset = (r % (s->max_blocks - 1)) * BS;
- iocb->opcode = IORING_OP_READ;
+ if (fixedbufs)
+ iocb->opcode = IORING_OP_READ_FIXED;
+ else
+ iocb->opcode = IORING_OP_READ;
iocb->flags = 0;
iocb->ioprio = 0;
iocb->fd = fd;