From: Pavel Begunkov Date: Mon, 28 Apr 2025 12:52:32 +0000 (+0100) Subject: io_uring: delete misleading comment in io_fill_cqe_aux() X-Git-Tag: v6.16-rc1~215^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d2fed790ce6407e321e89aac3c8c0e28986fff;p=thirdparty%2Fkernel%2Flinux.git io_uring: delete misleading comment in io_fill_cqe_aux() io_fill_cqe_aux() doesn't overflow completions, however it might fail them and lets the caller handle it. Remove the comment, which doesn't make any sense. Signed-off-by: Pavel Begunkov Link: https://lore.kernel.org/r/021aa8c1d8f20ef2b66da6aeabb6b511938fd2c5.1745843119.git.asml.silence@gmail.com Signed-off-by: Jens Axboe --- diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 2e4d8e76316a8..703251f6f4d81 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -814,11 +814,6 @@ static bool io_fill_cqe_aux(struct io_ring_ctx *ctx, u64 user_data, s32 res, ctx->cq_extra++; - /* - * If we can't get a cq entry, userspace overflowed the - * submission (by quite a lot). Increment the overflow count in - * the ring. - */ if (likely(io_get_cqe(ctx, &cqe))) { WRITE_ONCE(cqe->user_data, user_data); WRITE_ONCE(cqe->res, res);