Files
linux/io_uring
Ming Lei 93b8cc60c3 io_uring: cancelable uring_cmd
uring_cmd may never complete, such as ublk, in which uring cmd isn't
completed until one new block request is coming from ublk block device.

Add cancelable uring_cmd to provide mechanism to driver for cancelling
pending commands in its own way.

Add API of io_uring_cmd_mark_cancelable() for driver to mark one command as
cancelable, then io_uring will cancel this command in
io_uring_cancel_generic(). ->uring_cmd() callback is reused for canceling
command in driver's way, then driver gets notified with the cancelling
from io_uring.

Add API of io_uring_cmd_get_task() to help driver cancel handler
deal with the canceling.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-09-28 07:36:00 -06:00
..
2023-09-28 07:36:00 -06:00
2022-12-07 06:47:13 -07:00
2022-07-24 18:39:11 -06:00
2023-09-21 12:04:45 -06:00
2023-08-11 10:42:57 -06:00
2022-07-24 18:39:14 -06:00
2023-08-10 10:24:25 -06:00
2023-08-11 10:42:57 -06:00
2023-09-28 07:36:00 -06:00