linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Auguste Mome <augustmome@gmail.com>
To: linux-mm@kvack.org
Subject: Re: On using allocation in sysctl handler
Date: Mon, 29 Mar 2010 13:10:25 +0200	[thread overview]
Message-ID: <17cb70ee1003290410o72b244abrbc8d41ddf2fde5f4@mail.gmail.com> (raw)
In-Reply-To: <17cb70ee1003270356g7fba07b0xf558583484748dc3@mail.gmail.com>

I did the allocation inside a lock, that's the real problem, not the
GFP thing. Really sorry for the noise.

On Sat, Mar 27, 2010 at 12:56 PM, Auguste Mome <augustmome@gmail.com> wrote:
> Hi,
> I added an allocation GFP_KERNEL inside a sysctl handler and got the error
> BUG: sleeping function called from invalid context
> in_atomic(): 1, irqs_disabled(): 0, pid: 723, name: sysctl
>
> Is it obvious error and I should use GFP_ATOMIC?
> I guess yes, but it just happens since I switched to a 2.6.30 on ppc, and it did
> not happen on 2.6.30 x86.
> So I'm not sure if something is wrong on ppc, of if something changed
> recently in sysctl,
> or simply my code was wrong and the check has improved in memory system.
>
> Thanks,
> Auguste.
>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2010-03-29 11:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-27 10:56 On using allocation in sysctl handler Auguste Mome
2010-03-29 11:10 ` Auguste Mome [this message]

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=17cb70ee1003290410o72b244abrbc8d41ddf2fde5f4@mail.gmail.com \
    --to=augustmome@gmail.com \
    --cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).