nvme: release ida resources
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 18 Mar 2020 15:27:59 +0000 (17:27 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:51:55 +0000 (04:51 +0900)
commitf41cfd5d0a04b12a5dae753cd01163661432ebbb
tree67da0062639c37c5f0dedd7bdd05fdf018e80cd5
parentc225b610311bc5695d952cd3590136f26199a227
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>
drivers/nvme/host/core.c