Commit ffe312cf authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Yan, Zheng

rbd: fix ida/idr memory leak

ida_destroy() needs to be called on module exit to release ida caches.
Signed-off-by: default avatarIlya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
parent 0f2d5be7
......@@ -5473,6 +5473,7 @@ static int __init rbd_init(void)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment