From: Stefan Hajnoczi <stefanha@redhat.com>
To: Fiona Ebner <f.ebner@proxmox.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, hreitz@redhat.com,
kwolf@redhat.com, sgarzare@redhat.com, jusual@redhat.com,
mehta.aaru20@gmail.com
Subject: Re: [PATCH] block/io_uring: improve error message when init fails
Date: Tue, 23 Jan 2024 09:01:38 -0500 [thread overview]
Message-ID: <20240123140138.GA484337@fedora> (raw)
In-Reply-To: <20240123135044.204985-1-f.ebner@proxmox.com>
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
On Tue, Jan 23, 2024 at 02:50:44PM +0100, Fiona Ebner wrote:
> The man page for io_uring_queue_init states:
>
> > io_uring_queue_init(3) returns 0 on success and -errno on failure.
>
> and the man page for io_uring_setup (which is one of the functions
> where the return value of io_uring_queue_init() can come from) states:
>
> > On error, a negative error code is returned. The caller should not
> > rely on errno variable.
>
> Tested using 'sysctl kernel.io_uring_disabled=2'. Output before this
> change:
>
> > failed to init linux io_uring ring
>
> Output after this change:
>
> > failed to init linux io_uring ring: Operation not permitted
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> block/io_uring.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my master tree:
https://gitlab.com/stefanha/qemu/commits/master
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2024-01-23 14:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-23 13:50 [PATCH] block/io_uring: improve error message when init fails Fiona Ebner
2024-01-23 14:01 ` Stefan Hajnoczi [this message]
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=20240123140138.GA484337@fedora \
--to=stefanha@redhat.com \
--cc=f.ebner@proxmox.com \
--cc=hreitz@redhat.com \
--cc=jusual@redhat.com \
--cc=kwolf@redhat.com \
--cc=mehta.aaru20@gmail.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sgarzare@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).