block: null_blk: batched complete poll requests
authorMing Lei <ming.lei@redhat.com>
Fri, 3 Dec 2021 08:17:03 +0000 (16:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 13:36:28 +0000 (06:36 -0700)
commit2385ebf38f94d4f7761b1e9a4973d04753da02c2
treed65257b171cf5644fa5e87a4949248815c364cae
parent545a32498c536ee152331cd2e7d2416aa0f20e01
block: null_blk: batched complete poll requests

Complete poll requests via blk_mq_add_to_batch() and
blk_mq_end_request_batch(), so that we can cover batched complete
code path by running null_blk test.

Meantime this way shows ~14% IOPS boost on 't/io_uring /dev/nullb0'
in my test.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211203081703.3506020-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c