mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Jiri Kosina <jikos@jikos.cz>
Cc: Len Brown <len.brown@intel.com>,
	linux-acpi@intel.com, linux-kernel@vger.kernel.org
Subject: Re: [RESEND] [PATCH] ACPI - change GFP_ATOMIC to GFP_KERNEL for non-atomic allocation
Date: Mon, 7 Aug 2006 13:58:36 -0700	[thread overview]
Message-ID: <20060807135836.d766c50e.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0608071602480.26318@twin.jikos.cz>

On Mon, 7 Aug 2006 16:30:43 +0200 (CEST)
Jiri Kosina <jikos@jikos.cz> wrote:

> acpi_pci_link_set() allocates with GFP_ATOMIC. On resume from suspend,
> this is called with interrupts off, otherwise GFP_KERNEL is safe.
> 
> On the other hand, when resuming from suspend with interrupts off, the 
> following callchain allocates with GFP_KERNEL, which is wrong:
> 
> acpi_pci_link_resume -> acpi_pci_link_set -> acpi_set_current_resources ->
> acpi_rs_set_srs_method_data -> acpi_ut_create_internal_object_dbg ->
> acpi_ut_allocate_object_desc_dbg -> acpi_os_acquire_object ->
> kmem_cache_alloc(GFP_KERNEL) flag.
> 
> Resending patch, which didn't make it into -rc4, to fix both issues. The
> patch is intentionally using irqs_disabled() and does not check in_resume
> flag, as this is marked for removal (which is for example how
> acpi_os_allocate() checks whether it should perform GFP_KERNEL or
> GFP_ATOMIC allocation).

acpi_os_acquire_object() is fixed in -rc4.  I queued the
acpi_pci_link_set() improvement for sending on to Len, thanks.  

  reply	other threads:[~2006-08-07 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-07 14:30 Jiri Kosina
2006-08-07 20:58 ` Andrew Morton [this message]
2006-08-08  1:12   ` Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060807135836.d766c50e.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=jikos@jikos.cz \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®