From: srivatsa.bhat@linux.vnet.ibm.com (Srivatsa S. Bhat)
To: linux-arm-kernel@lists.infradead.org
Subject: BUG: sleeping function called from invalid context at include/linux/freezer.h:45
Date: Tue, 10 Jan 2012 18:34:27 +0530 [thread overview]
Message-ID: <4F0C375B.7040600@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAH9JG2XniMv5dVf1DixGNaQAJk-sZjnV9HfYeihEJP3JDyC4+Q@mail.gmail.com>
On 01/10/2012 09:57 AM, Kyungmin Park wrote:
> Dear all
>
> with the latest kernel. I got the below bug message.
> It calls the sleep function. Does it intended operation?
>
> static inline bool try_to_freeze(void)
> {
> might_sleep();
> if (likely(!freezing(current)))
> return false;
> return __refrigerator(false);
> }
>
> # poweroff
> [ 6.852523] BUG: sleeping function called from invalid context at
> include/linux/freezer.h:45
> [ 6.859489] in_atomic(): 0, irqs_disabled(): 128, pid: 1, name: init
> [ 6.865846] [<c0013508>] (unwind_backtrace+0x0/0xec) from
> [<c0010124>] (do_signal+0x88/0x588)
> [ 6.874337] [<c0010124>] (do_signal+0x88/0x588) from [<c001063c>]
> (do_notify_resume+0x18/0x38)
> [ 6.882928] [<c001063c>] (do_notify_resume+0x18/0x38) from
> [<c000dc18>] (work_pending+0x24/0x28)
>
You seem to be running on Arm architecture. Can you please try the patch
at https://lkml.org/lkml/2011/8/25/231 ?
Regards,
Srivatsa S. Bhat
IBM Linux Technology Center
WARNING: multiple messages have this Message-ID (diff)
From: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
To: Kyungmin Park <kmpark@infradead.org>
Cc: Pavel Machek <pavel@ucw.cz>, "Rafael J. Wysocki" <rjw@sisk.pl>,
Len Brown <len.brown@intel.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Tejun Heo <tj@kernel.org>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
linux-arm-kernel@lists.infradead.org
Subject: Re: BUG: sleeping function called from invalid context at include/linux/freezer.h:45
Date: Tue, 10 Jan 2012 18:34:27 +0530 [thread overview]
Message-ID: <4F0C375B.7040600@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAH9JG2XniMv5dVf1DixGNaQAJk-sZjnV9HfYeihEJP3JDyC4+Q@mail.gmail.com>
On 01/10/2012 09:57 AM, Kyungmin Park wrote:
> Dear all
>
> with the latest kernel. I got the below bug message.
> It calls the sleep function. Does it intended operation?
>
> static inline bool try_to_freeze(void)
> {
> might_sleep();
> if (likely(!freezing(current)))
> return false;
> return __refrigerator(false);
> }
>
> # poweroff
> [ 6.852523] BUG: sleeping function called from invalid context at
> include/linux/freezer.h:45
> [ 6.859489] in_atomic(): 0, irqs_disabled(): 128, pid: 1, name: init
> [ 6.865846] [<c0013508>] (unwind_backtrace+0x0/0xec) from
> [<c0010124>] (do_signal+0x88/0x588)
> [ 6.874337] [<c0010124>] (do_signal+0x88/0x588) from [<c001063c>]
> (do_notify_resume+0x18/0x38)
> [ 6.882928] [<c001063c>] (do_notify_resume+0x18/0x38) from
> [<c000dc18>] (work_pending+0x24/0x28)
>
You seem to be running on Arm architecture. Can you please try the patch
at https://lkml.org/lkml/2011/8/25/231 ?
Regards,
Srivatsa S. Bhat
IBM Linux Technology Center
next prev parent reply other threads:[~2012-01-10 13:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 4:27 BUG: sleeping function called from invalid context at include/linux/freezer.h:45 Kyungmin Park
2012-01-10 5:52 ` Amit Sahrawat
2012-01-10 5:59 ` Kyungmin Park
2012-01-10 13:04 ` Srivatsa S. Bhat [this message]
2012-01-10 13:04 ` Srivatsa S. Bhat
2012-01-11 0:57 ` Kyungmin Park
2012-01-11 0:57 ` Kyungmin Park
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=4F0C375B.7040600@linux.vnet.ibm.com \
--to=srivatsa.bhat@linux.vnet.ibm.com \
--cc=linux-arm-kernel@lists.infradead.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 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.