mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
io_uring: comment why inline complete calls io_clean_op()
io_req_complete_state() calls io_clean_op() and it may be not entirely obvious, leave a comment. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/21806f862151e223fdf439e5e8ed7178a8d66979.1632516769.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
ef05d9ebcc
commit
a1cdbb4cb5
@ -1822,6 +1822,7 @@ static void io_req_complete_state(struct io_kiocb *req, long res,
|
||||
{
|
||||
struct io_submit_state *state;
|
||||
|
||||
/* clean per-opcode space, because req->compl is aliased with it */
|
||||
if (io_req_needs_clean(req))
|
||||
io_clean_op(req);
|
||||
req->result = res;
|
||||
|
Loading…
Reference in New Issue
Block a user