]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2015 12:03:55 +0000 (14:03 +0200)
commit72267c2e77226ebfca62d8dbb9bb8fca061bd914
tree85a12bae18fbafc848397a32f66eb56f18e99a79
parentfd55246133075d717f1466a32bb3e295d056a454
dm: hold suspend_lock while suspending device during device deletion

commit ab7c7bb6f4ab95dbca96fcfc4463cd69843e3e24 upstream.

__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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm.c