]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Make snapshot_release() restore GFP mask
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 10 May 2011 19:10:01 +0000 (21:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 21 May 2011 22:13:12 +0000 (15:13 -0700)
commit29639f09f1f93fec0b6a53aff7cf8927bbd3b783
tree9d24f384408ae9d8ea4d88ebbefda44a48274e74
parentb869799eec5145afe463368afb679445d8e4bc3f
PM / Hibernate: Make snapshot_release() restore GFP mask

commit 9744997a8a2280e67984d4bffd87221d24f3b6b1 upstream.

If the process using the hibernate user space interface closes
/dev/snapshot after creating a hibernation image without thawing
tasks, snapshot_release() should call pm_restore_gfp_mask() to
restore the GFP mask used before the creation of the image.  Make
that happen.

Tested-by: Alexandre Felipe Muller de Souza <alexandrefm@mandriva.com.br>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/power/user.c