dm: hold suspend_lock while suspending device during device deletion
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 27 Feb 2015 19:04:27 +0000 (14:04 -0500)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Feb 2015 19:09:23 +0000 (14:09 -0500)
commitab7c7bb6f4ab95dbca96fcfc4463cd69843e3e24
tree5ce6a44f6f2e4ba727bb138bfd85f3af7b137740
parent5f027a3bf184d1d36e68745f7cd3718a8b879cc0
dm: hold suspend_lock while suspending device during device deletion

__dm_destroy() must take the suspend_lock so that its presuspend and
postsuspend calls do not race with an internal suspend.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm.c