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>
Wed, 22 Jun 2022 17:06:07 +0000 (11:06 -0600)
commit0bbf9e00d07bac99b8c5fcede9e5a0bb40a3f1e1
tree04fec1700fe2d4ba6dba6ff66c86528e5751dce9
parenta88db7830a7a1a812753346759451b86489e33ad
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