diff options
author | 2017-02-05 18:15:24 +0100 | |
---|---|---|
committer | 2017-02-27 20:54:05 +0200 | |
commit | 73473427bb551686e4b68ecd99bfd27e6635286a (patch) | |
tree | 1fcd48bde4b03d0aa3688e88f916a412a6156357 /include/linux/blk-mq-virtio.h | |
parent | virtio: provide a method to get the IRQ affinity mask for a virtqueue (diff) | |
download | linux-73473427bb551686e4b68ecd99bfd27e6635286a.tar.gz linux-73473427bb551686e4b68ecd99bfd27e6635286a.tar.bz2 linux-73473427bb551686e4b68ecd99bfd27e6635286a.zip |
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 */ |