-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libublk: io: support to handle io command by async/await
Now it is ready to write target io command handling code by async/await. Add UblkQueue::wait_and_handle_io_cmd() for handle each io command, and run async executor for driving each io task. Add UblkDev::get_nr_ios() for creating Executor. Add UblkIOCtx::build_user_data_async() for building UringOpFuture(). Add one test for verifying async/await to handle one null io command by submitting two io_uring nop Op, then wait both by futures::join!(f, f2). In this test, device wide data read/write is also added. Signed-off-by: Ming Lei <tom.leiming@gmail.com>
- Loading branch information
Showing
3 changed files
with
273 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters