From: Pavel Begunkov <asml.silence@gmail.com>
To: Ming Lei <ming.lei@redhat.com>, Jens Axboe <axboe@kernel.dk>,
io-uring@vger.kernel.org
Subject: Re: [PATCH] io_uring: pass correct parameters to io_req_set_res
Date: Wed, 3 Aug 2022 12:40:17 +0100 [thread overview]
Message-ID: <48b58f2b-014c-cbc6-36c3-29be42040fa0@gmail.com> (raw)
In-Reply-To: <20220803110938.1564772-1-ming.lei@redhat.com>
On 8/3/22 12:09, Ming Lei wrote:
> The two parameters of 'res' and 'cflags' are swapped, so fix it.
> Without this fix, 'ublk del' hangs forever.
Looks good, but the "Fixes" tag is not right
Fixes: de23077eda61f ("io_uring: set completion results upfront")
> Cc: Pavel Begunkov <asml.silence@gmail.com>
> Fixes: 27a9d66fec77 ("io_uring: kill extra io_uring_types.h includes")
> Signed-off-by: Ming Lei <ming.lei@redhat.com>
> ---
> io_uring/uring_cmd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c
> index 0a421ed51e7e..849d9708d612 100644
> --- a/io_uring/uring_cmd.c
> +++ b/io_uring/uring_cmd.c
> @@ -46,7 +46,7 @@ void io_uring_cmd_done(struct io_uring_cmd *ioucmd, ssize_t ret, ssize_t res2)
> if (ret < 0)
> req_set_fail(req);
>
> - io_req_set_res(req, 0, ret);
> + io_req_set_res(req, ret, 0);
> if (req->ctx->flags & IORING_SETUP_CQE32)
> io_req_set_cqe32_extra(req, res2, 0);
> __io_req_complete(req, 0);
--
Pavel Begunkov
next prev parent reply other threads:[~2022-08-03 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 11:09 [PATCH] io_uring: pass correct parameters to io_req_set_res Ming Lei
2022-08-03 11:40 ` Pavel Begunkov [this message]
2022-08-03 11:59 ` Ming Lei
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=48b58f2b-014c-cbc6-36c3-29be42040fa0@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--cc=ming.lei@redhat.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.