Re: [PATCH RESENT] nvme-pci: suspend queues based on online_queues

From: Sagi Grimberg
Date: Mon Feb 12 2018 - 13:37:57 EST



nvme cq irq is freed based on queue_count. When the sq/cq creation
fails, irq will not be setup. free_irq will warn 'Try to free
already-free irq'.

To fix it, we only increase online_queues when adminq/sq/cq are
created and associated irq is setup. Then suspend queues based
on online_queues.

Signed-off-by: Jianchao Wang <jianchao.w.wang@xxxxxxxxxx>

Can I get a review for this?