]> git.baikalelectronics.ru Git - kernel.git/commit
ublk_drv: avoid to touch io_uring cmd in blk_mq io path
authorMing Lei <ming.lei@redhat.com>
Sat, 29 Oct 2022 01:04:31 +0000 (09:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 31 Oct 2022 13:23:24 +0000 (07:23 -0600)
commita5199fc236ccc84f8505e76d2e20132bfd3445e7
tree7a365c3088761e6c86dba70d25c547d2dfb6aecf
parentb1341f9153fd61e05a9f9d1bbb40b73943cb881f
ublk_drv: avoid to touch io_uring cmd in blk_mq io path

io_uring cmd is supposed to be used in ubq daemon context mainly,
and we should try to avoid to touch it in ublk io submission context,
otherwise this data could become shared between the two contexts,
and performance is hurt.

So link request into one per-queue list, and use same batching policy
of io_uring command, just avoid to touch ucmd in blk-mq io context.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221029010432.598367-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c