projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16dc79
)
engines/io_uring: add fixedbufs support for io_uring_cmd
author
Anuj Gupta
<anuj20.g@samsung.com>
Mon, 3 Oct 2022 03:31:52 +0000
(09:01 +0530)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 3 Oct 2022 15:08:39 +0000
(09:08 -0600)
This patch enables fixedbufs support for io_uring_cmd. This has already
been done in t/io_uring, just do it here as well.
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link:
https://lore.kernel.org/r/20221003033152.314763-1-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index d0fc61dcac394e69419b78232c86be4aa69a7fab..c679177fb4765cd4cdf4777588af77f7d0794e5c 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-433,6
+433,10
@@
static int fio_ioring_cmd_prep(struct thread_data *td, struct io_u *io_u)
ld->prepped = 0;
sqe->flags |= IOSQE_ASYNC;
}
+ if (o->fixedbufs) {
+ sqe->uring_cmd_flags = IORING_URING_CMD_FIXED;
+ sqe->buf_index = io_u->index;
+ }
cmd = (struct nvme_uring_cmd *)sqe->cmd;
return fio_nvme_uring_cmd_prep(cmd, io_u,