x86, ioapic: Fix potential resume deadlock
authorDaniel J Blueman <daniel.blueman@gmail.com>
Wed, 18 May 2011 23:31:31 +0000 (16:31 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:21:00 +0000 (12:21 -0500)
commit9b81839c342b17c263e393dbcc91746dffd71523
treee67f86a5103d867bfc56fee3f385973a47a9a8ee
parentc23065e985f77a8a15c4a64792809c7882d1bbcb
x86, ioapic: Fix potential resume deadlock

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

commit b64ce24daffb634b5b3133a2e411bd4de50654e8 upstream.

Fix a potential deadlock when resuming; here the calling
function has disabled interrupts, so we cannot sleep.

Change the memory allocation flag from GFP_KERNEL to GFP_ATOMIC.

TODO: We can do away with this memory allocation during resume
      by reusing the ioapic suspend/resume code that uses boot time
      allocated buffers, but we want to keep this -stable patch
      simple.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/20110518233157.385970138@sbsiddha-MOBL3.sc.intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/kernel/apic/io_apic.c