]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 10 May 2011 19:10:13 +0000 (21:10 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 May 2011 19:10:58 +0000 (21:10 +0200)
commit976d3967534a77b02ec538bd509d7022172544e3
treed7d62149629bda6a916693232885b96ca34f30f3
parente0fe613feca277c12e056135fb3b666fdfbb5b3a
PM / Hibernate: Fix ioctl SNAPSHOT_S2RAM

The SNAPSHOT_S2RAM ioctl used for implementing the feature allowing
one to suspend to RAM after creating a hibernation image is currently
broken, because it doesn't clear the "ready" flag in the struct
snapshot_data object handled by it.  As a result, the
SNAPSHOT_UNFREEZE doesn't work correctly after SNAPSHOT_S2RAM has
returned and the user space hibernate task cannot thaw the other
processes as appropriate.  Make SNAPSHOT_S2RAM clear data->ready
to fix this problem.

Tested-by: Alexandre Felipe Muller de Souza <alexandrefm@mandriva.com.br>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: stable@kernel.org
kernel/power/user.c