On using allocation in sysctl handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]