Stefan Hajnoczi
2021-Jan-26 11:13 UTC
[PATCH v2] virtio-blk: support per-device queue depth
On Fri, Jan 22, 2021 at 05:21:46PM +0800, Joseph Qi wrote:> 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. > > Signed-off-by: Joseph Qi <joseph.qi at linux.alibaba.com> > Acked-by: Jason Wang <jasowang at redhat.com> > --- > drivers/block/virtio_blk.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-)Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: not available URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20210126/4d01221b/attachment.sig>