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>
Showing
- include/linux/io_uring_types.h 6 additions, 1 deletioninclude/linux/io_uring_types.h
- io_uring/io_uring.c 36 additions, 35 deletionsio_uring/io_uring.c
- io_uring/io_uring.h 7 additions, 7 deletionsio_uring/io_uring.h
- io_uring/notif.c 2 additions, 2 deletionsio_uring/notif.c
- io_uring/poll.c 16 additions, 16 deletionsio_uring/poll.c
- io_uring/rw.c 3 additions, 3 deletionsio_uring/rw.c
- io_uring/timeout.c 7 additions, 7 deletionsio_uring/timeout.c
- io_uring/uring_cmd.c 2 additions, 2 deletionsio_uring/uring_cmd.c
Loading
Please register or sign in to comment