diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
1044 | return NULL; | 1044 | return NULL; |
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | static void unlock_fs(struct mapped_device *md); | ||
1048 | |||
1047 | static void free_dev(struct mapped_device *md) | 1049 | static void free_dev(struct mapped_device *md) |
1048 | { | 1050 | { |
1049 | int minor = md->disk->first_minor; | 1051 | int minor = md->disk->first_minor; |
1050 | 1052 | ||
1051 | if (md->suspended_bdev) { | 1053 | if (md->suspended_bdev) { |
1052 | thaw_bdev(md->suspended_bdev, NULL); | 1054 | unlock_fs(md); |
1053 | bdput(md->suspended_bdev); | 1055 | bdput(md->suspended_bdev); |
1054 | } | 1056 | } |
1055 | mempool_destroy(md->tio_pool); | 1057 | mempool_destroy(md->tio_pool); |