]> git.ipfire.org Git - thirdparty/linux.git/commit
bsg: add io_uring command support to generic layer
authorYang Xiuwei <yangxiuwei@kylinos.cn>
Tue, 17 Mar 2026 07:22:25 +0000 (15:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Mar 2026 17:38:24 +0000 (11:38 -0600)
commita1e97ce80d9f41d0bb83951d758ff6fe49f3de60
tree76c84703b7d5b00cb692f6a08938137a87ac9c8b
parent7da9261bab0a82bdbc4aafd2ad4bc3529b7cb772
bsg: add io_uring command support to generic layer

Add an io_uring command handler to the generic BSG layer. The new
.uring_cmd file operation validates io_uring features and delegates
handling to a per-queue bsg_uring_cmd_fn callback.

Extend bsg_register_queue() so transport drivers can register both
sg_io and io_uring command handlers.

Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260317072226.2598233-3-yangxiuwei@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bsg-lib.c
block/bsg.c
drivers/scsi/scsi_bsg.c
include/linux/bsg.h