commit | ab7c7bb6f4ab95dbca96fcfc4463cd69843e3e24 | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Fri Feb 27 14:04:27 2015 -0500 |
committer | Mike Snitzer <snitzer@redhat.com> | Fri Feb 27 14:09:23 2015 -0500 |
tree | 5ce6a44f6f2e4ba727bb138bfd85f3af7b137740 | |
parent | 5f027a3bf184d1d36e68745f7cd3718a8b879cc0 [diff] |
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