Commit 60e6ce7
io_uring: pass ctx instead of req to io_init_req_drain()
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.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250212164807.3681036-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 0e89347 commit 60e6ce7
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1997 | 1997 | | |
1998 | 1998 | | |
1999 | 1999 | | |
2000 | | - | |
| 2000 | + | |
2001 | 2001 | | |
2002 | | - | |
2003 | 2002 | | |
2004 | 2003 | | |
2005 | 2004 | | |
| |||
2061 | 2060 | | |
2062 | 2061 | | |
2063 | 2062 | | |
2064 | | - | |
| 2063 | + | |
2065 | 2064 | | |
2066 | 2065 | | |
2067 | 2066 | | |
| |||
0 commit comments