Re: BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46

From: Rabin Vincent
Date: Fri Apr 20 2012 - 08:28:47 EST


On Wed, Apr 4, 2012 at 12:32, Lothar Waßmann <LW@xxxxxxxxxxxxxxxxxxx> wrote:
> commit a0acae0e added a might_sleep() to try_to_freeze() in
> include/linux/freezer.h.
> This leads to the following BUG message each time a process is started
> when compiled with CONFIG_DEBUG_ATOMIC_SLEEP=y
>
> |BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
> |in_atomic(): 0, irqs_disabled(): 128, pid: 619, name: rc

This is on ARM, right? In this old thread, there is a patch from
Russell which fixes it, but it seems to have not been applied:

https://lkml.org/lkml/2011/8/25/231
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/