aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2018-01-05 21:17:20 -0500
committerMike Snitzer <snitzer@redhat.com>2018-01-17 09:16:15 -0500
commitd5ffebdd797a7c1c89576267640f671db2a668fc (patch)
tree6796c229b8b8db0014e9d797bfe882c2b26a1a60 /drivers/md/dm-thin.c
parentdm snapshot: use mutex instead of rw_semaphore (diff)
downloadlinux-dev-d5ffebdd797a7c1c89576267640f671db2a668fc.tar.xz
linux-dev-d5ffebdd797a7c1c89576267640f671db2a668fc.zip
dm: backfill missing calls to mutex_destroy()
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index f91d771fff4b..c1c6160be355 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -492,6 +492,11 @@ static void pool_table_init(void)
INIT_LIST_HEAD(&dm_thin_pool_table.pools);
}
+static void pool_table_exit(void)
+{
+ mutex_destroy(&dm_thin_pool_table.mutex);
+}
+
static void __pool_table_insert(struct pool *pool)
{
BUG_ON(!mutex_is_locked(&dm_thin_pool_table.mutex));
@@ -4387,6 +4392,8 @@ static void dm_thin_exit(void)
dm_unregister_target(&pool_target);
kmem_cache_destroy(_new_mapping_cache);
+
+ pool_table_exit();
}
module_init(dm_thin_init);