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, 15 Apr 2024 14:10:24 +0000 (08:10 -0600)
commit23fbdde6205d9351bb52a4b8f11ec38bdbc8561a
treef484be915d7846a4152c719598bdafdc93ba768b
parent902ce82c2aa130bea5e3feca2d4ae62781865da7
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