NVMe: End queued bio requests when freeing queue
Subsystems (2)
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
@@ -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
Matthew Wilcox
AppliedPATCH 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 :-)