Skip to contentSkip to conversation

NVMe: Decrement online queue count on suspend

PATCH New Keith Busch 1 participant 1 message Apr 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 625259d..ce5a4f1 100644
@@ -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