diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 34a981ba1b9e501863fa1f27858dcc932fb2eed2..8295b3afa8e0f8015217af4326f1a098aa8c7e67 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -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);