Skip to content
Commit d6aa0c17 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

ublk: call ublk_dispatch_req() for handling UBLK_U_IO_NEED_GET_DATA



We call io_uring_cmd_complete_in_task() to schedule task_work for handling
UBLK_U_IO_NEED_GET_DATA.

This way is really not necessary because the current context is exactly
the ublk queue context, so call ublk_dispatch_req() directly for handling
UBLK_U_IO_NEED_GET_DATA.

Fixes: 216c8f5e ("ublk: replace monitor with cancelable uring_cmd")
Tested-by: default avatarJared Holzman <jholzman@nvidia.com>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250425013742.1079549-2-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c4d2519c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment