commit | d5ffebdd797a7c1c89576267640f671db2a668fc | [log] [tgz] |
---|---|---|
author | Mike Snitzer <snitzer@redhat.com> | Fri Jan 05 21:17:20 2018 -0500 |
committer | Mike Snitzer <snitzer@redhat.com> | Wed Jan 17 09:16:15 2018 -0500 |
tree | 6796c229b8b8db0014e9d797bfe882c2b26a1a60 | |
parent | ae1093be5a0ef997833e200a0dafb9ed0b1ff4fe [diff] [blame] |
dm: backfill missing calls to mutex_destroy() Signed-off-by: Mike Snitzer <snitzer@redhat.com>
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 73d7f31..67bf116 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c
@@ -1789,6 +1789,10 @@ static void cleanup_mapped_device(struct mapped_device *md) md->bdev = NULL; } + mutex_destroy(&md->suspend_lock); + mutex_destroy(&md->type_lock); + mutex_destroy(&md->table_devices_lock); + dm_mq_cleanup_mapped_device(md); }