Re: [PATCH for-next] io_uring: return EBADFD when ring isn't in the right state

From: Stefano Garzarella
Date: Wed Sep 09 2020 - 03:11:35 EST


On Tue, Sep 08, 2020 at 11:02:48AM -0600, Jens Axboe wrote:
> On 9/8/20 10:52 AM, Stefano Garzarella wrote:
> > This patch uniforms the returned error (EBADFD) when the ring state
> > (enabled/disabled) is not the expected one.
> >
> > The changes affect io_uring_enter() and io_uring_register() syscalls.
>
> I added a Fixes line:
>
> Fixes: 7ec3d1dd9378 ("io_uring: allow disabling rings during the creation")

Oh right, I forgot!

>
> and applied it, thanks!
>
> > https://github.com/stefano-garzarella/liburing (branch: fix-disabled-ring-error)
>
> I'll check and pull that one too.
>

Thanks,
Stefano