diff --git a/drivers/md/dm.c b/drivers/md/dm.c index d837d37f6209..7cb61ab887a2 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1044,12 +1044,14 @@ static struct mapped_device *alloc_dev(int minor) return NULL; } +static void unlock_fs(struct mapped_device *md); + static void free_dev(struct mapped_device *md) { int minor = md->disk->first_minor; if (md->suspended_bdev) { - thaw_bdev(md->suspended_bdev, NULL); + unlock_fs(md); bdput(md->suspended_bdev); } mempool_destroy(md->tio_pool);