rbd: fix ida/idr memory leak

ida_destroy() needs to be called on module exit to release ida caches.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
This commit is contained in:
Ilya Dryomov 2014-05-20 15:46:04 +04:00 committed by Yan, Zheng
parent 0f2d5be792
commit ffe312cf31
1 changed files with 1 additions and 0 deletions

View File

@ -5473,6 +5473,7 @@ err_out_slab:
static void __exit rbd_exit(void)
{
ida_destroy(&rbd_dev_id_ida);
rbd_sysfs_cleanup();
if (single_major)
unregister_blkdev(rbd_major, RBD_DRV_NAME);