io_uring: encapsulate task_work state
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 27 Mar 2023 15:38:15 +0000 (16:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Apr 2023 13:16:15 +0000 (07:16 -0600)
commita282967c848fb1d92c28334430c472da9c334e54
treeb80a46d323b355f5808fea18d2bac21bfd46b6ae
parent13bfa6f15d0b39254937076ab0557da6875bb455
io_uring: encapsulate task_work state

For task works we're passing around a bool pointer for whether the
current ring is locked or not, let's wrap it in a structure, that
will make it more opaque preventing abuse and will also help us
to pass more info in the future if needed.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1ecec9483d58696e248d1bfd52cf62b04442df1d.1679931367.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/notif.c
io_uring/poll.c
io_uring/rw.c
io_uring/timeout.c
io_uring/uring_cmd.c