Re: [PATCH] io_uring/cmd_net: split ioctl code out of io_uring_cmd_sock()

From: Jens Axboe

Date: Mon Feb 16 2026 - 12:46:42 EST


On 2/16/26 9:03 AM, Asbjørn Sloth Tønnesen wrote:
> io_uring_cmd_sock() originally supported two ioctl-based cmd_op
> operations. Over time, additional operations were added with tail calls
> to their helpers.
>
> This approach resulted in the new operations sharing an ioctl check
> with the original operations.
>
> io_uring_cmd_sock() now supports 6 operations, so let's move the
> implementation of the original two into their own helper, reducing
> io_uring_cmd_sock() to a simple dispatcher.
>
> Signed-off-by: Asbjørn Sloth Tønnesen <ast@xxxxxxxxxxx>
> ---
>
> Jens, I'm used to net -> net-next taking a week, as it only happens
> through Linus' tree.

Looks good to me - since this is just a cleanup, let's defer to 7.1.
I'll kick that off in a week or so, at which point I'll pick this one
up too.

--
Jens Axboe