]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-blk: support per-device queue depth
authorJoseph Qi <joseph.qi@linux.alibaba.com>
Fri, 22 Jan 2021 09:21:46 +0000 (17:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2021 12:52:59 +0000 (07:52 -0500)
commit2e7673b8e0364de170d3a3a6fe8e5792a6f1a381
treed1da07a6da035cf01be3aba844813400ccc1516a
parent4e588b27870ff31e22fceeb55bf8bdb90c1c97cb
virtio-blk: support per-device queue depth

module parameter 'virtblk_queue_depth' was firstly introduced for
testing/benchmarking purposes described in commit ae1a4c00d01f
("virtio-blk: base queue-depth on virtqueue ringsize or module param").
And currently 'virtblk_queue_depth' is used as a saved value for the
first probed device.
Since we have different virtio-blk devices which have different
capabilities, it requires that we support per-device queue depth instead
of per-module. So defaultly use vq free elements if module parameter
'virtblk_queue_depth' is not set.

Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/1611307306-71067-1-git-send-email-joseph.qi@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/block/virtio_blk.c