All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rabin Vincent <rabin@rab.in>
To: "Lothar Waßmann" <LW@karo-electronics.de>
Cc: linux-kernel@vger.kernel.org,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
Date: Fri, 20 Apr 2012 17:58:09 +0530	[thread overview]
Message-ID: <CAH+eYFA9+MpL4Ls8viiyvkxv56Q0=33pwNR8B_VW_6DY83t1tA@mail.gmail.com> (raw)
In-Reply-To: <20347.61964.860903.97474@ipc1.ka-ro>

On Wed, Apr 4, 2012 at 12:32, Lothar Waßmann <LW@karo-electronics.de> 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

WARNING: multiple messages have this Message-ID (diff)
From: rabin@rab.in (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46
Date: Fri, 20 Apr 2012 17:58:09 +0530	[thread overview]
Message-ID: <CAH+eYFA9+MpL4Ls8viiyvkxv56Q0=33pwNR8B_VW_6DY83t1tA@mail.gmail.com> (raw)
In-Reply-To: <20347.61964.860903.97474@ipc1.ka-ro>

On Wed, Apr 4, 2012 at 12:32, Lothar Wa?mann <LW@karo-electronics.de> 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

  reply	other threads:[~2012-04-20 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04  7:02 BUG: sleeping function called from invalid context at /usr/local/src/linux-3.4-rc1/include/linux/freezer.h:46 Lothar Waßmann
2012-04-20 12:28 ` Rabin Vincent [this message]
2012-04-20 12:28   ` Rabin Vincent

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='CAH+eYFA9+MpL4Ls8viiyvkxv56Q0=33pwNR8B_VW_6DY83t1tA@mail.gmail.com' \
    --to=rabin@rab.in \
    --cc=LW@karo-electronics.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.