NVMe: Decrement online queue count on suspend
Subsystems (2)
PATCH 1/1 NVMe: Decrement online queue count on suspend
Fixes cpu-to-queue assignment on suspend/resume or CSTS.CFS handling when more cpus than queues exist.
Signed-off-by Keith Busch <keith.busch at intel.com>
---
I've a branch where this has been there since the beginning... lost it from merging by hand.
drivers/block/nvme-core.c | 1 + 1 file changed, 1 insertion(+)
drivers/block/nvme-core.c +1 -0
@@ -1158,6 +1158,7 @@ static int nvme_suspend_queue(struct nvme_queue *nvmeq)return 1 ; } nvmeq->q_suspended =1 ; + nvmeq->dev->online_queues--;spin_unlock_irq (&nvmeq->q_lock);irq_set_affinity_hint (vector,NULL );
Signature · 1 line
1.7.10.4