Commit f41cfd5d authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Keith Busch
Browse files

nvme: release ida resources



ida instances allocate some internal memory in addition to the base
'struct ida'. Use ida_destroy() to release that memory at module_exit().

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent c225b610
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4358,6 +4358,7 @@ static void __exit nvme_core_exit(void)
	destroy_workqueue(nvme_delete_wq);
	destroy_workqueue(nvme_reset_wq);
	destroy_workqueue(nvme_wq);
	ida_destroy(&nvme_instance_ida);
}

MODULE_LICENSE("GPL");