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)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 May 2011 19:10:43 +0000 (21:10 +0200)
commit9744997a8a2280e67984d4bffd87221d24f3b6b1
treefde6744d42fcd742fb1cd1532609a1f13a1cc42d
parent87186475a402391a1ca7d42a675c9b35a18dc348
PM / Hibernate: Make snapshot_release() restore GFP mask

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>
Cc: stable@kernel.org
kernel/power/user.c