Skip to content
Commit 0a593fbb authored by Jens Axboe's avatar Jens Axboe
Browse files

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.

Fixes-by: default avatarBart Van Assche <bvanassche@acm.org>
Fixes-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/baca710d-0f2a-16e2-60bd-b105b854e0ae@kernel.dk
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4f502245
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment