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)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:23 +0000 (14:23 -0500)
commit2ee904fe109d164553d171199c7e5a4ad46a5473
treeaea100269a332de4d340b792f1e60464deb6d549
parent54cebcf8be8a43743c5a0504a31bdebd811d134d
PM / Hibernate: Make snapshot_release() restore GFP mask

BugLink: http://bugs.launchpad.net/bugs/788691

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>
Signed-off-by: Steve Conklin <sconklin@canonical.com>
kernel/power/user.c