]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Hibernate: Thaw kernel threads in SNAPSHOT_CREATE_IMAGE ioctl path
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Wed, 1 Feb 2012 21:16:36 +0000 (22:16 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 1 Feb 2012 21:16:36 +0000 (22:16 +0100)
commite495560dbc7df971792d6c41a4b0ca210c2754c5
tree3f875f40201455571280eef7a0c9fdc3c98e346e
parent5c4f9418d44bb5dea9aa3f015ada895716303915
PM / Hibernate: Thaw kernel threads in SNAPSHOT_CREATE_IMAGE ioctl path

In the SNAPSHOT_CREATE_IMAGE ioctl, if the call to hibernation_snapshot()
fails, the frozen tasks are not thawed.

And in the case of success, if we happen to exit due to a successful freezer
test, all tasks (including those of userspace) are thawed, whereas actually
we should have thawed only the kernel threads at that point. Fix both these
issues.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: stable@vger.kernel.org
kernel/power/user.c