io_uring: refactor tctx_task_work
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Jan 2023 14:37:18 +0000 (14:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commitcb6bf7f285c270d7808807128b5bce414e3f254a
tree3c9d3e6383491efc16fa422f22f65700342eb827
parent5afa4650713918e60865ed42d9439e82f6d24773
io_uring: refactor tctx_task_work

Merge almost identical sections of tctx_task_work(), this will make code
modifications later easier and also inlines handle_tw_list().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d06592d91e3e7559e7a4dbb8907d110863008dc7.1674484266.git.asml.silence@gmail.com
[axboe: fold in setting count to zero patch from Tom Rix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c