io_uring: move req async preparation into opcode handler
authorJens Axboe <axboe@kernel.dk>
Mon, 23 May 2022 23:30:37 +0000 (17:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Jun 2022 12:30:35 +0000 (06:30 -0600)
commitf618289b13f871465d5080d4cd555dbf792402bc
tree6a97f6aed9bb422281be19ba7782be0befb03265
parent9291102bc1cf3635a47d200720c72abe6868dd06
io_uring: move req async preparation into opcode handler

Define an io_op_def->prep_async() handler and push the async preparation
to there. Since we now have that, we can drop ->needs_async_setup, as
they mean the same thing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c