diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 014a7f6e39bc..bcc780ac4ec0 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -781,8 +781,10 @@ static int adapter_delete_sq(struct nvme_dev *dev, u16 sqid) | |||
781 | static void nvme_free_queue(struct nvme_dev *dev, int qid) | 781 | static void nvme_free_queue(struct nvme_dev *dev, int qid) |
782 | { | 782 | { |
783 | struct nvme_queue *nvmeq = dev->queues[qid]; | 783 | struct nvme_queue *nvmeq = dev->queues[qid]; |
784 | int vector = dev->entry[nvmeq->cq_vector].vector; | ||
784 | 785 | ||
785 | free_irq(dev->entry[nvmeq->cq_vector].vector, nvmeq); | 786 | irq_set_affinity_hint(vector, NULL); |
787 | free_irq(vector, nvmeq); | ||
786 | 788 | ||
787 | /* Don't tell the adapter to delete the admin queue */ | 789 | /* Don't tell the adapter to delete the admin queue */ |
788 | if (qid) { | 790 | if (qid) { |