io_uring: simplify task_work func
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Jun 2021 20:54:04 +0000 (21:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Jul 2021 19:40:23 +0000 (13:40 -0600)
commit5b0a6acc73fcac5f7d17badd09275bf7b9b46603
tree8e27d4b32718a284231e444c659777d4bde2cbe4
parent9011bf9a13e3b5710c3cfc330da829ee25b5a029
io_uring: simplify task_work func

Since we don't really use req->task_work anymore, get rid of it together
with the nasty ->func aliasing between ->io_task_work and ->task_work,
and hide ->fallback_node inside of io_task_work.

Also, as task_work is gone now, replace the callback type from
task_work_func_t to a function taking io_kiocb to avoid casting and
simplify code.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c