swsusp: use GFP_KERNEL for creating basic data structures
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 6 May 2007 21:50:45 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:59 +0000 (12:12 -0700)
commit0709db6072c2e799eba1aa61bd19e0d7f38aa2cd
treee348c73adbfdcb46b05b23f36dc420ecdd62ca8a
parent1525a2ad76f991eba9755f75c9b6d4d97abad25e
swsusp: use GFP_KERNEL for creating basic data structures

Make swsusp call create_basic_memory_bitmaps() before processes are frozen, so
that GFP_KERNEL allocations can be made in it.  Additionally, ensure that the
swsusp's userland interface won't be used while either pm_suspend_disk() or
software_resume() is being executed.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/disk.c
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/user.c