]> git.baikalelectronics.ru Git - kernel.git/commit
ublk_drv: return flag of UBLK_F_URING_CMD_COMP_IN_TASK in case of module
authorMing Lei <ming.lei@redhat.com>
Sat, 29 Oct 2022 01:04:29 +0000 (09:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Oct 2022 13:23:16 +0000 (07:23 -0600)
commitc2fbc2fe13e988953ac0b546eddfeafdb4cf8d55
tree8940ceac8fdef5b9988c912b508bb838f0034c1f
parent6543993107b598cdd758f3c6c0dc562cfedea763
ublk_drv: return flag of UBLK_F_URING_CMD_COMP_IN_TASK in case of module

UBLK_F_URING_CMD_COMP_IN_TASK needs to be set and returned to userspace
if ublk driver is built as module, otherwise userspace may get wrong
flags shown.

Fixes: 44155c24ce3c ("ublk_drv: add io_uring based userspace block driver")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221029010432.598367-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c