diff --git a/lib/bdev/rbd/bdev_rbd.c b/lib/bdev/rbd/bdev_rbd.c index 4904d4da2e..f85778b163 100644 --- a/lib/bdev/rbd/bdev_rbd.c +++ b/lib/bdev/rbd/bdev_rbd.c @@ -312,6 +312,8 @@ bdev_rbd_destruct(void *ctx) { struct bdev_rbd *rbd = ctx; + spdk_io_device_unregister(rbd, NULL); + bdev_rbd_free(rbd); return 0; }