From: Anuj Gupta <anuj20.g@samsung.com>
To: axboe@kernel.dk, vincentfu@gmail.com
Cc: fio@vger.kernel.org, gost.dev@samsung.com,
ankit.kumar@samsung.com, Anuj Gupta <anuj20.g@samsung.com>
Subject: [PATCH] engines/io_uring: add fixedbufs support for io_uring_cmd
Date: Mon, 3 Oct 2022 09:01:52 +0530 [thread overview]
Message-ID: <20221003033152.314763-1-anuj20.g@samsung.com> (raw)
In-Reply-To: CGME20221003034159epcas5p1018bd8a2413cdd569a6d01b135163d35@epcas5p1.samsung.com
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>
---
engines/io_uring.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/engines/io_uring.c b/engines/io_uring.c
index d0fc61dc..c679177f 100644
--- 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,
--
2.25.1
next parent reply other threads:[~2022-10-03 4:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20221003034159epcas5p1018bd8a2413cdd569a6d01b135163d35@epcas5p1.samsung.com>
2022-10-03 3:31 ` Anuj Gupta [this message]
2022-10-03 15:09 ` [PATCH] engines/io_uring: add fixedbufs support for io_uring_cmd Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221003033152.314763-1-anuj20.g@samsung.com \
--to=anuj20.g@samsung.com \
--cc=ankit.kumar@samsung.com \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=gost.dev@samsung.com \
--cc=vincentfu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.