[PATCH V2 5/6] virtio: add one field into virtio_device for recording if device uses managed irq
Ming Lei
ming.lei at redhat.com
Wed Jul 7 23:34:59 PDT 2021
On Wed, Jul 07, 2021 at 04:05:29PM +0200, Christoph Hellwig wrote:
> On Wed, Jul 07, 2021 at 05:42:54PM +0800, Ming Lei wrote:
> > The problem is that how blk-mq looks at that flag, since the device
> > representing the controller which allocates irq vectors isn't visible
> > to blk-mq.
>
> In blk_mq_pci_map_queues and similar helpers.
Firstly it depends if drivers call into these helpers, so this way
is fragile.
Secondly, I think it isn't good to expose specific physical devices
into blk-mq which shouldn't deal with physical device directly, also
all the three helpers just duplicates same logic except for retrieving
each vector's affinity from specific physical device.
I will think about how to cleanup them.
Thanks,
Ming
More information about the Linux-nvme
mailing list