summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2020-03-18 17:27:59 +0200
committerKeith Busch <kbusch@kernel.org>2020-03-26 04:51:55 +0900
commitf41cfd5d0a04b12a5dae753cd01163661432ebbb (patch)
tree67da0062639c37c5f0dedd7bdd05fdf018e80cd5 /drivers/nvme/host
parentc225b610311bc5695d952cd3590136f26199a227 (diff)
downloadlinux-f41cfd5d0a04b12a5dae753cd01163661432ebbb.tar.gz
linux-f41cfd5d0a04b12a5dae753cd01163661432ebbb.tar.bz2
linux-f41cfd5d0a04b12a5dae753cd01163661432ebbb.zip
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r--drivers/nvme/host/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3c1c826ea491..ad0847b6c769 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -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");