|
@@ -1044,12 +1044,14 @@ static struct mapped_device *alloc_dev(int minor)
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static void unlock_fs(struct mapped_device *md);
|
|
|
|
+
|
|
static void free_dev(struct mapped_device *md)
|
|
static void free_dev(struct mapped_device *md)
|
|
{
|
|
{
|
|
int minor = md->disk->first_minor;
|
|
int minor = md->disk->first_minor;
|
|
|
|
|
|
if (md->suspended_bdev) {
|
|
if (md->suspended_bdev) {
|
|
- thaw_bdev(md->suspended_bdev, NULL);
|
|
|
|
|
|
+ unlock_fs(md);
|
|
bdput(md->suspended_bdev);
|
|
bdput(md->suspended_bdev);
|
|
}
|
|
}
|
|
mempool_destroy(md->tio_pool);
|
|
mempool_destroy(md->tio_pool);
|