linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: sleeping function called from invalid context at include/linux/freezer.h:45
@ 2012-01-10  4:27 Kyungmin Park
  2012-01-10  5:52 ` Amit Sahrawat
  2012-01-10 13:04 ` Srivatsa S. Bhat
  0 siblings, 2 replies; 5+ messages in thread
From: Kyungmin Park @ 2012-01-10  4:27 UTC (permalink / raw)
  To: Pavel Machek, Rafael J. Wysocki
  Cc: Len Brown, linux-pm, linux-kernel, Tejun Heo

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)

commit e4e11180dfa545233e5145919b75b7fac88638df
Merge: 37cfc3f adc0e91
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Mon Jan 9 17:37:37 2012 -0800

    Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vi

Thank you,
Kyungmin Park

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

end of thread, other threads:[~2012-01-11  0:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-01-11  0:57   ` Kyungmin Park

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