]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
null_blk: Support shared tag bitmap
authorJohn Garry <john.garry@huawei.com>
Wed, 19 Aug 2020 15:20:29 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:44:44 +0000 (13:44 -0600)
commit0905053bdb5b7ba77ad0c2e5cfc4787c1db3d4f1
treeddf72968cef47093e34939955d1276ca5b290458
parentac8f7a0264404c3e982ccabdc173d46d89ee7ea1
null_blk: Support shared tag bitmap

Support a shared tag bitmap, whereby request tags are unique over all
submission queues, and not just per submission queue.

As such, per device total queue depth is normally hw_queue_depth *
submit_queues, but hw_queue_depth when set. And a similar story for when
shared_tags is set, where that is the queue depth over all null blk
devices.

Signed-off-by: John Garry <john.garry@huawei.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c