public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] Thinkpad Suspend Powersave: Fix ACPI's GFP_KERNEL allocations in contexts that can sleep
       [not found] ` <2.518178082@mit.edu>
@ 2005-03-16 21:29   ` Andrew Morton
  2005-03-16 21:57     ` Christian Borntraeger
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2005-03-16 21:29 UTC (permalink / raw)
  To: Theodore Y. Ts'o
  Cc: linux-kernel, linux-thinkpad, benh, len.brown, volker.braun

"Theodore Y. Ts'o" <tytso@mit.edu> wrote:
>
> This fixes a problem originally reported by Christian Borntraeger where
>  during the wakeup from a suspend-to-ram, several "sleeping function
>  called from invalid context" warning messages are issued.  Unlike a
>  previous patch which attempted to solve this problem, we avoid doing an
>  GFP_ATOMIC kmalloc() except when explicitly necessary.
> 
>  Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> 
>  Index: src/drivers/acpi/osl.c
>  ===================================================================
>  --- src.orig/drivers/acpi/osl.c	2005-03-14 09:38:15.000000000 -0500
>  +++ src/drivers/acpi/osl.c	2005-03-14 09:38:18.000000000 -0500
>  @@ -145,7 +145,7 @@
>   void *
>   acpi_os_allocate(acpi_size size)
>   {
>  -	return kmalloc(size, GFP_KERNEL);
>  +	return kmalloc(size, in_atomic() ? GFP_ATOMIC : GFP_KERNEL);

We shouldn't do this.  Please see
http://www.uwsg.iu.edu/hypermail/linux/kernel/0503.1/1205.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] Thinkpad Suspend Powersave: Fix ACPI's GFP_KERNEL allocations in contexts that can sleep
  2005-03-16 21:29   ` [PATCH 1/2] Thinkpad Suspend Powersave: Fix ACPI's GFP_KERNEL allocations in contexts that can sleep Andrew Morton
@ 2005-03-16 21:57     ` Christian Borntraeger
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Borntraeger @ 2005-03-16 21:57 UTC (permalink / raw)
  To: len.brown
  Cc: Theodore Y. Ts'o, linux-kernel, linux-thinkpad, benh,
	Andrew Morton, volker.braun

Andrew Morton wrote:
> "Theodore Y. Ts'o" <tytso@mit.edu> wrote:
> > This fixes a problem originally reported by Christian Borntraeger where
> >  during the wakeup from a suspend-to-ram, several "sleeping function
> >  called from invalid context" warning messages are issued.  Unlike a
> >  previous patch which attempted to solve this problem, we avoid doing
> > an GFP_ATOMIC kmalloc() except when explicitly necessary.

Len,
you indicated that you are going to address the S3 sleeping function issue 
after the development for 2.6.12 has started with an invasive but correct 
fix. 
(http://marc.theaimsgroup.com/?l=acpi4linux&m=110978961501752&w=2)
Can you give an overview about your progress?

cheers

Christian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-16 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1.518178082@mit.edu>
     [not found] ` <2.518178082@mit.edu>
2005-03-16 21:29   ` [PATCH 1/2] Thinkpad Suspend Powersave: Fix ACPI's GFP_KERNEL allocations in contexts that can sleep Andrew Morton
2005-03-16 21:57     ` Christian Borntraeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox