]> 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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 12:14:11 +0000 (14:14 +0200)
commitc83510f1ec1eb63d944fbe4113d72f7c6f2b6fe5
tree9cb97834db5e636325f4aa4f16b5f9c1e0fb6996
parent52b64c8b06f3d59e54a22aa37aca20f7bf67481a
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: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm.c