block: virtio-blk: support multi virt queues per virtio-blk device
authorMing Lei <ming.lei@canonical.com>
Thu, 26 Jun 2014 09:41:48 +0000 (17:41 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 1 Jul 2014 16:51:03 +0000 (10:51 -0600)
commit6a27b656fc0210e976db362e1368c56db05c8f08
tree063dfdcbeb4c24e1c100e8a5bfd1bd99cbdd7d10
parentcb553215d5d277d4838d7d6b7722e964bcf5ca1f
block: virtio-blk: support multi virt queues per virtio-blk device

Firstly this patch supports more than one virtual queues for virtio-blk
device.

Secondly this patch maps the virtual queue to blk-mq's hardware queue.

With this approach, both scalability and performance can be improved.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/virtio_blk.c