null_blk: poll queue support for-5.13/drivers-post-merge
authorJens Axboe <axboe@kernel.dk>
Sat, 17 Apr 2021 15:29:49 +0000 (09:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Apr 2021 15:00:37 +0000 (09:00 -0600)
commit9c2540f95729727e3df2fba6df1502f9dace872c
tree895d0fb8edc15a23c9f2814e731af986c1785689
parent79ccb112c414988379b1c0e9db5f6e8ba82e3cc5
null_blk: poll queue support

There's currently no way to experiment with polled IO with null_blk,
which seems like an oversight. This patch adds support for polled IO.
We keep a list of issued IOs on submit, and then process that list
when mq_ops->poll() is invoked.

A new parameter is added, poll_queues. It defaults to 1 like the
submit queues, meaning we'll have 1 poll queue available by default.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c
drivers/block/null_blk/null_blk.h