]> www.infradead.org Git - users/willy/xarray.git/commit
ublk: fix UBLK_CMD_DEL_DEV_ASYNC handling
authorMing Lei <ming.lei@redhat.com>
Wed, 24 Jul 2024 14:33:11 +0000 (22:33 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jul 2024 15:51:46 +0000 (09:51 -0600)
commit55fbb9a5d64e0e590cad5eacc16c99f2482a008f
tree8feed4d3e375c7fe5194497ad1042c330cb4cf93
parent7e04da2dc7013af50ed3a2beb698d5168d1e594b
ublk: fix UBLK_CMD_DEL_DEV_ASYNC handling

In ublk_ctrl_uring_cmd(), ioctl command NR should be used for
matching _IOC_NR(cmd_op).

Fix it by adding one private macro, and this way is clean.

Fixes: 13fe8e6825e4 ("ublk: add UBLK_CMD_DEL_DEV_ASYNC")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20240724143311.2646330-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c