Re: [PATCH 2/4] io_uring/cmd: introduce IORING_URING_CMD_REISSUE flag
From: Jens Axboe
Date: Tue Jul 01 2025 - 15:04:13 EST
On 6/19/25 1:27 PM, Caleb Sander Mateos wrote:
> diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c
> index 929cad6ee326..7cddc4c1c554 100644
> --- a/io_uring/uring_cmd.c
> +++ b/io_uring/uring_cmd.c
> @@ -257,10 +257,12 @@ int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags)
> req->iopoll_start = ktime_get_ns();
> }
> }
>
> ret = file->f_op->uring_cmd(ioucmd, issue_flags);
> + if (ret == -EAGAIN)
> + ioucmd->flags |= IORING_URING_CMD_REISSUE;
> if (ret == -EAGAIN || ret == -EIOCBQUEUED)
> return ret;
Probably fold that under the next statement?
if (ret == -EAGAIN || ret == -EIOCBQUEUED) {
if (ret == -EAGAIN) {
ioucmd->flags |= IORING_URING_CMD_REISSUE;
return ret;
}
?
--
Jens Axboe