io_uring: remove struct io_tw_state::locked
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Mar 2024 22:00:30 +0000 (22:00 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:24 +0000 (08:10 -0600)
commit8e5b3b89ecaf6d9295e561c225b35c574a5e0fe7
tree6a35205e09dd5a3ec397a3c1c38445b032856000
parent92219afb980e01d88a1ac6d8fe01dcae255c4279
io_uring: remove struct io_tw_state::locked

ctx is always locked for task_work now, so get rid of struct
io_tw_state::locked. Note I'm stopping one step before removing
io_tw_state altogether, which is not empty, because it still serves the
purpose of indicating which function is a tw callback and forcing users
not to invoke them carelessly out of a wrong context. The removal can
always be done later.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/e95e1ea116d0bfa54b656076e6a977bc221392a4.1710799188.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/poll.c
io_uring/rw.c
io_uring/timeout.c
io_uring/uring_cmd.c
io_uring/waitid.c