From mboxrd@z Thu Jan 1 00:00:00 1970 From: Udo van den Heuvel Subject: Re: 2.6.33.1-rt11 BUG: sleeping function called from invalid context at kernel/rtmutex.c:684 Date: Tue, 06 Apr 2010 15:34:29 +0200 Message-ID: <4BBB3865.9070204@xs4all.nl> References: <4BB8587F.40307@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: RT Return-path: Received: from pindarots.xs4all.nl ([80.101.128.228]:32771 "EHLO pindarots.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753731Ab0DFNec (ORCPT ); Tue, 6 Apr 2010 09:34:32 -0400 Received: from surfplank2.hierzo (localhost.localdomain [127.0.0.1]) by pindarots.xs4all.nl (8.14.3/8.14.3) with ESMTP id o36DYTvC028703 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 6 Apr 2010 15:34:30 +0200 In-Reply-To: Sender: linux-rt-users-owner@vger.kernel.org List-ID: 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: >> [] ? rt_spin_lock+0x2c/0x70 >> [] ? __raid_run_ops+0x304/0xc60 >> [] ? handle_stripe+0x6bd/0x1a70 >> [] ? mod_timer+0x150/0x200 >> [] ? raid5d+0x376/0x4f0 >> [] ? schedule_timeout+0x22d/0x2b0 >> [] ? rt_spin_lock+0x2c/0x70 >> [] ? md_thread+0x53/0x120 >> [] ? autoremove_wake_function+0x0/0x30 >> [] ? md_thread+0x0/0x120 >> [] ? kthread+0x96/0xa0 >> [] ? finish_task_switch+0x58/0xd0 >> [] ? kernel_thread_helper+0x4/0x10 >> [] ? kthread+0x0/0xa0 >> [] ? 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? Kind regards, Udo