diff options
author | Christoph Hellwig <hch@lst.de> | 2017-02-05 20:15:24 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-02-27 21:54:05 +0300 |
commit | 73473427bb551686e4b68ecd99bfd27e6635286a (patch) | |
tree | 1fcd48bde4b03d0aa3688e88f916a412a6156357 /include/linux/blk-mq-virtio.h | |
parent | bbaba479563910aaa51e59bb9027a09e396d3a3c (diff) | |
download | linux-73473427bb551686e4b68ecd99bfd27e6635286a.tar.xz |
blk-mq: provide a default queue mapping for virtio device
Similar to the PCI version, just calling into virtio instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/blk-mq-virtio.h')
-rw-r--r-- | include/linux/blk-mq-virtio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/blk-mq-virtio.h b/include/linux/blk-mq-virtio.h new file mode 100644 index 000000000000..b1ef6e14744f --- /dev/null +++ b/include/linux/blk-mq-virtio.h @@ -0,0 +1,10 @@ +#ifndef _LINUX_BLK_MQ_VIRTIO_H +#define _LINUX_BLK_MQ_VIRTIO_H + +struct blk_mq_tag_set; +struct virtio_device; + +int blk_mq_virtio_map_queues(struct blk_mq_tag_set *set, + struct virtio_device *vdev, int first_vec); + +#endif /* _LINUX_BLK_MQ_VIRTIO_H */ |