linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* On using allocation in sysctl handler
@ 2010-03-27 10:56 Auguste Mome
  2010-03-29 11:10 ` Auguste Mome
  0 siblings, 1 reply; 2+ messages in thread
From: Auguste Mome @ 2010-03-27 10:56 UTC (permalink / raw)
  To: linux-mm

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>

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

end of thread, other threads:[~2010-03-29 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-27 10:56 On using allocation in sysctl handler Auguste Mome
2010-03-29 11:10 ` Auguste Mome

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).