On Thu, Jul 22, 2021 at 05:52:44PM +0800, Ming Lei wrote: > irq vector allocation with managed affinity may be used by driver, and > blk-mq needs this info for draining queue because genirq core will shutdown > managed irq when all CPUs in the affinity mask are offline. > > The info of using managed irq is often produced by drivers, and it is > consumed by blk-mq, so different subsystems are involved in this info flow. > > Address this issue by adding one helper of device_has_managed_msi_irq() > which is suggested by John Garry. This implies non-MSI irqs can't be managed, which is true right now. If the irq maintaines are fine with that: Reviewed-by: Christoph Hellwig <hch@xxxxxx>