Commit a1cdbb4c authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

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: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/21806f862151e223fdf439e5e8ed7178a8d66979.1632516769.git.asml.silence@gmail.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ef05d9eb
...@@ -1822,6 +1822,7 @@ static void io_req_complete_state(struct io_kiocb *req, long res, ...@@ -1822,6 +1822,7 @@ static void io_req_complete_state(struct io_kiocb *req, long res,
{ {
struct io_submit_state *state; struct io_submit_state *state;
/* clean per-opcode space, because req->compl is aliased with it */
if (io_req_needs_clean(req)) if (io_req_needs_clean(req))
io_clean_op(req); io_clean_op(req);
req->result = res; req->result = res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment