Skip to contentSkip to conversation

NVMe: End queued bio requests when freeing queue

PATCH New Keith Busch 2 participants 2 messages Aug 20, 2012 – Nov 6, 2012

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

PATCH 1/1 NVMe: End queued bio requests when freeing queue

Signed-off-by Keith Busch <keith.busch at intel.com>
---
 drivers/block/nvme.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/block/nvme.c +4 -0
index f9ad514..c9722f5 100644
@@ -911,6 +911,10 @@ static void nvme_free_queue(struct nvme_dev *dev, int qid)
 
 	spin_lock_irq(&nvmeq->q_lock);
 	nvme_cancel_ios(nvmeq, false);
+	while (bio_list_peek(&nvmeq->sq_cong)) {
+		struct bio *bio = bio_list_pop(&nvmeq->sq_cong);
+		bio_endio(bio, -EIO);
+	}
 	spin_unlock_irq(&nvmeq->q_lock);
 
 	irq_set_affinity_hint(vector, NULL);
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 NVMe: End queued bio requests when freeing queue

Quoted 1 line · Keith Busch
Signed-off-by Keith Busch <keith.busch at intel.com>

THanks, applied. I wrote another changelog :-)