Re: [PATCH] io_uring: pass ctx instead of req to io_init_req_drain()
From: Jens Axboe
Date: Wed Feb 12 2025 - 13:17:15 EST
On Wed, 12 Feb 2025 09:48:05 -0700, Caleb Sander Mateos wrote:
> io_init_req_drain() takes a struct io_kiocb *req argument but only uses
> it to get struct io_ring_ctx *ctx. The caller already knows the ctx, so
> pass it instead.
>
> Drop "req" from the function name since it operates on the ctx rather
> than a specific req.
>
> [...]
Applied, thanks!
[1/1] io_uring: pass ctx instead of req to io_init_req_drain()
commit: 5fa0beffc75910a694a90ed0425bb13674b10256
Best regards,
--
Jens Axboe