io_uring/cmd: kill one issue_flags to tw conversion
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Mar 2024 22:00:24 +0000 (22:00 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Mar 2024 14:50:52 +0000 (08:50 -0600)
commit90dacba2c6dba5ea179022e7155e7ddf4c018b1d
treeee23fed2ec83548952bb4fe8cc284f1b5cf31368
parentb2335259fde881f90e505e9ad6bd6981b7d40755
io_uring/cmd: kill one issue_flags to tw conversion

io_uring cmd converts struct io_tw_state to issue_flags and later back
to io_tw_state, it's awfully ill-fated, not to mention that intermediate
issue_flags state is not correct.

Get rid of the last conversion, drag through tw everything that came
with IO_URING_F_UNLOCKED, and replace io_req_complete_defer() with a
direct call to io_req_complete_defer(), at least for the time being.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/c53fa3df749752bd058cf6f824a90704822d6bcc.1710799188.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c