io_uring: simplify task_work func for-5.14/io_uring
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Jun 2021 20:54:04 +0000 (21:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:24:41 +0000 (15:24 -0600)
commit295765dbf4a6bd22d1ac5b4f2130555fe187e1a5
tree9e8b6e2b5121189fc32fc3820fa71d7166600c38
parent8a380cb46baed91cb59159deb34355e2cb90c412
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