From: Pavel Begunkov Date: Fri, 24 Sep 2021 21:00:03 +0000 (+0100) Subject: io_uring: comment why inline complete calls io_clean_op() X-Git-Tag: v6.6.17~9008^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1cdbb4cb5f7190c429b1127892f756b7cd32db4;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/21806f862151e223fdf439e5e8ed7178a8d66979.1632516769.git.asml.silence@gmail.com Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index eff24d8..5a06063 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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;