io_uring: remove current check from complete_post
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Mar 2024 22:00:33 +0000 (22:00 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Mar 2024 14:50:52 +0000 (08:50 -0600)
commit6f7aae16b2d018768d0c2e0a117a198bfb988cf3
tree25255071acb4ceb201c09d908ff47aacde901d7b
parent648e9adbff06f7996d3b114684fc1659704e6fb9
io_uring: remove current check from complete_post

task_work execution is now always locked, and we shouldn't get into
io_req_complete_post() from them. That means that complete_post() is
always called out of the original task context and we don't even need to
check current.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/24ec27f27db0d8f58c974d8118dca1d345314ddc.1710799188.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c