]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb058648bcfb1bf5b3371cfc42c7e7d7d284e53a2
tree5ce6a44f6f2e4ba727bb138bfd85f3af7b137740
parent2f85ecb37f42053ccab19ec41998684cbcd92bda
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