Re: 2.6.33.1-rt11 BUG: sleeping function called from invalid context at kernel/rtmutex.c:684

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

 



On Tue, Apr 06, 2010 at 03:34:29PM +0200, Udo van den Heuvel wrote:
| Hallo Thomas,
| 
| On 2010-04-06 10:07, Thomas Gleixner wrote:
| > On Sun, 4 Apr 2010, Udo van den Heuvel wrote:
| >> I see a load of these after booting into 2.6.33.1-rt11:
| >>
| >> BUG: sleeping function called from invalid context at kernel/rtmutex.c:684
| >> pcnt: 1 0 in_atomic(): 1, irqs_disabled(): 0, pid: 1507, name: md1_raid5
| >> Pid: 1507, comm: md1_raid5 Not tainted 2.6.33.1-rt11 #1
| >> Call Trace:
| >>  [<ffffffff8138fb8c>] ? rt_spin_lock+0x2c/0x70
| >>  [<ffffffff812becc4>] ? __raid_run_ops+0x304/0xc60
| >>  [<ffffffff812c0ccd>] ? handle_stripe+0x6bd/0x1a70
| >>  [<ffffffff8104b460>] ? mod_timer+0x150/0x200
| >>  [<ffffffff812c23f6>] ? raid5d+0x376/0x4f0
| >>  [<ffffffff8138e5bd>] ? schedule_timeout+0x22d/0x2b0
| >>  [<ffffffff8138fb8c>] ? rt_spin_lock+0x2c/0x70
| >>  [<ffffffff812cd0f3>] ? md_thread+0x53/0x120
| >>  [<ffffffff810573a0>] ? autoremove_wake_function+0x0/0x30
| >>  [<ffffffff812cd0a0>] ? md_thread+0x0/0x120
| >>  [<ffffffff81057016>] ? kthread+0x96/0xa0
| >>  [<ffffffff81037908>] ? finish_task_switch+0x58/0xd0
| >>  [<ffffffff810032d4>] ? kernel_thread_helper+0x4/0x10
| >>  [<ffffffff81056f80>] ? kthread+0x0/0xa0
| >>  [<ffffffff810032d0>] ? kernel_thread_helper+0x0/0x10
| >>
| >> As these appear to be touching my raid array I am quite eager to learn
| >> how I can fix the BUGs.
| >>
| >> Please have a look and explain.
| > 
| > That's caused by the get_cpu()/put_cpu() preempt disabled region. Can
| > you try the following (untested) patch ?
| 
| After applying, compilign and rebooting the BUG-messages appear to be
| gone (after a quick test).
| Thanks!
| 
| Only issue remaining is this message:
| 
| Apr  6 15:25:02 nawdew rtkit-daemon[3484]: Failed to make ourselves RT:
| Operation not permitted
| (repeated a number of times)
| 
| Is this also -rt related?

here's the description of rtkit:

	Summary     : Realtime Policy and Watchdog Daemon
	Description :
	  RealtimeKit is a D-Bus system service that changes the
	  scheduling policy of user processes/threads to SCHED_RR (i.e. realtime
	  scheduling mode) on request. It is intended to be used as a secure
	  mechanism to allow real-time scheduling to be used by normal user
	  processes.

One famous user of rtkit is pulseaudio. In fact, it is the only user of
rtkit on my system. And the message reflects that either your pulseaudio
config is forbidding usage of RT prios or the user running pulseaudio has
no rights to use higher priorities (check with ulimit)

Luis

| 
| Kind regards,
| Udo
| --
| To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
| the body of a message to majordomo@xxxxxxxxxxxxxxx
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
---end quoted text---

-- 
[ Luis Claudio R. Goncalves                    Bass - Gospel - RT ]
[ Fingerprint: 4FDD B8C4 3C59 34BD 8BE9  2696 7203 D980 A448 C8F8 ]

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux