Skip to contentSkip to conversation

virtio-blk: support per-device queue depth

PATCH Stefan Hajnoczi 2 participants 2 messages Jan 26, 2021 – Feb 19, 2021 3 messages not in the archive virtio core

lore
Share & tools
lore

Stefan Hajnoczi

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Joseph Qi

module parameter 'virtblk_queue_depth' was firstly introduced for testing/benchmarking purposes described in commit fc4324b4597c ("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.

Quoted 5 lines
---
 drivers/block/virtio_blk.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#4 lore raw
In reply to a message not in the archive
Quoted 2 lines · Joseph Qi

Hi Michael,
Could you take this now?

It has been merged:

https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?h=vhost&id=8c6daa79e527a05adb6f5d42cbed2fe36c6b3e83

Thanks

Quoted 27 lines

Thanks,
Joseph

Quoted 22 lines · Joseph Qi

Ping...

Quoted 19 lines · Stefan Hajnoczi
Quoted 10 lines · Joseph Qi

module parameter 'virtblk_queue_depth' was firstly introduced for testing/benchmarking purposes described in commit fc4324b4597c ("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.

Quoted 5 lines
---
  drivers/block/virtio_blk.c | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization