Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750950AbWHKPA5 (ORCPT ); Fri, 11 Aug 2006 11:00:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751167AbWHKPA5 (ORCPT ); Fri, 11 Aug 2006 11:00:57 -0400 Received: from nf-out-0910.google.com ([64.233.182.188]:40996 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S1750950AbWHKPA4 (ORCPT ); Fri, 11 Aug 2006 11:00:56 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uu5bAd1KMlRUhoo3CdVXBxUb1r7EpEM4Bjxw7qVZ34qKrh7F7O6Bs0N0BKMRC/LTaIZ0mdlcrCshhFkj/GAEzfiwre76stb9ukxqrH4U+M0hbeD/UuseX0pygvpsTJDZirCFfw/p76eY7DSJHNPFLCxJ/D7C0J5ZlXOuMMS4G/I= Message-ID: Date: Fri, 11 Aug 2006 08:00:50 -0700 From: "Robert Crocombe" To: "hui Bill Huey" Subject: Re: [Patch] restore the RCU callback to defer put_task_struct() Re: Problems with 2.6.17-rt8 Cc: "Esben Nielsen" , "Steven Rostedt" , linux-kernel@vger.kernel.org, "Ingo Molnar" , "Thomas Gleixner" , "Darren Hart" In-Reply-To: <20060811010646.GA24434@gnuppy.monkey.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1154541079.25723.8.camel@localhost.localdomain> <1154615261.32264.6.camel@localhost.localdomain> <20060808025615.GA20364@gnuppy.monkey.org> <20060808030524.GA20530@gnuppy.monkey.org> <20060810021835.GB12769@gnuppy.monkey.org> <20060811010646.GA24434@gnuppy.monkey.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7097 Lines: 164 On 8/10/06, hui Bill Huey wrote: > This is the second round of getting rid of the locking problems with free_task() > > This extends the mmdrop logic with desched_thread() to also handle free_task() > requests as well. I believe this address your concerns and I'm open to review > of this patch. > > Patch included: Just tried it. -- Robert Crocombe rcrocomb@gmail.com kjournald/1119[CPU#3]: BUG in debug_rt_mutex_unlock at kernel/rtmutex-debug.c:471 Call Trace: {_raw_spin_lock_irqsave+34} {__WARN_ON+105} {__WARN_ON+36} {debug_rt_mutex_unlock+204} {rt_lock_slowunlock+30} {__lock_text_start+14} {kmem_cache_alloc+207} {mempool_alloc_slab+22} {mempool_alloc+80} {mcount+45} {bio_alloc_bioset+40} {bio_alloc+21} {submit_bh+142} {ll_rw_block+166} {journal_commit_transaction+1016} {constant_test_bit+9} {_raw_spin_unlock+51} {rt_lock_slowunlock+70} {__lock_text_start+14} {try_to_del_timer_sync+90} {kjournald+207} {autoremove_wake_function+0} {kjournald+0} {keventd_create_kthread+0} {kthread+224} {schedule_tail+198} {child_rip+8} {keventd_create_kthread+0} {kthread+0} {child_rip+0} --------------------------- | preempt count: 00000002 ] | 2-level deep critical section nesting: ---------------------------------------- .. [] .... _raw_spin_lock+0x1b/0x28 .....[] .. ( <= rt_lock_slowunlock+0x16/0x70) .. [] .... _raw_spin_lock_irqsave+0x22/0x33 .....[] .. ( <= __WARN_ON+0x24/0x8a) kjournald/1119[CPU#3]: BUG in debug_rt_mutex_unlock at kernel/rtmutex-debug.c:472 Call Trace: {_raw_spin_lock_irqsave+34} {__WARN_ON+105} {__WARN_ON+36} {debug_rt_mutex_unlock+366} {rt_lock_slowunlock+30} {__lock_text_start+14} {kmem_cache_alloc+207} {mempool_alloc_slab+22} {mempool_alloc+80} {mcount+45} {bio_alloc_bioset+40} {bio_alloc+21} {submit_bh+142} {ll_rw_block+166} {journal_commit_transaction+1016} {constant_test_bit+9} {_raw_spin_unlock+51} {rt_lock_slowunlock+70} {__lock_text_start+14} {try_to_del_timer_sync+90} {kjournald+207} {autoremove_wake_function+0} {kjournald+0} {keventd_create_kthread+0} {kthread+224} {schedule_tail+198} {child_rip+8} {keventd_create_kthread+0} {kthread+0} {child_rip+0} --------------------------- | preempt count: 00000002 ] | 2-level deep critical section nesting: ---------------------------------------- .. [] .... _raw_spin_lock+0x1b/0x28 .....[] .. ( <= rt_lock_slowunlock+0x16/0x70) .. [] .... _raw_spin_lock_irqsave+0x22/0x33 .....[] .. ( <= __WARN_ON+0x24/0x8a) ----------- [cut here ] --------- [please bite here ] --------- Kernel BUG at kernel/rtmutex.c:639 invalid opcode: 0000 [1] PREEMPT SMP CPU 3 Modules linked in: ohci1394 ieee1394 tg3 Pid: 1119, comm: kjournald Not tainted 2.6.17-rt8_t2_00 #2 RIP: 0010:[] {rt_lock_slowlock+186} RSP: 0000:ffff8107eacbdb38 EFLAGS: 00010246 RAX: ffff8105eade7100 RBX: 0000000000000010 RCX: 0000000000240180 RDX: ffff8105eade7100 RSI: ffffffff802793e6 RDI: ffff810600115ca0 RBP: ffff8107eacbdbf8 R08: ffff8102000d7f38 R09: ffff8107eacbdb38 R10: ffff8102000d7f38 R11: 0000000000000023 R12: ffff810600115ca0 R13: ffff8101eae158c0 R14: ffffffff802793e6 R15: 0000000000000010 FS: 00002ab5934811e0(0000) GS:ffff810600211340(0000) knlGS:0000000000000000 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b CR2: 00002ab5969c1000 CR3: 00000005e69e4000 CR4: 00000000000006e0 Process kjournald (pid: 1119, threadinfo ffff8107eacbc000, task ffff8105eade7100) Stack: 111111110000008c ffff8107eacbdb40 ffff8107eacbdb40 ffff8107eacbdb50 ffff8107eacbdb50 0000000000000000 111111110000008c ffff8107eacbdb70 ffff8107eacbdb70 ffff8107eacbdb80 Call Trace: {rt_lock+18} {kmem_cache_alloc+84} {mempool_alloc_slab+22} {mempool_alloc+80} {bio_alloc_bioset+151} {bio_alloc+21} {submit_bh+142} {ll_rw_block+166} {journal_commit_transaction+1016} {constant_test_bit+9} {_raw_spin_unlock+51} {rt_lock_slowunlock+70} {__lock_text_start+14} {try_to_del_timer_sync+90} {kjournald+207} {autoremove_wake_function+0} {kjournald+0} {keventd_create_kthread+0} {kthread+224} {schedule_tail+198} {child_rip+8} {keventd_create_kthread+0} {kthread+0} {child_rip+0} --------------------------- | preempt count: 00000002 ] | 2-level deep critical section nesting: ---------------------------------------- .. [] .... _raw_spin_lock+0x1b/0x28 .....[] .. ( <= rt_lock_slowlock+0x3b/0x213) .. [] .... _raw_spin_trylock+0x1b/0x5f .....[] .. ( <= oops_begin+0x28/0x77) Code: 0f 0b 68 70 44 4c 80 c2 7f 02 65 48 8b 04 25 00 00 00 00 41 RIP {rt_lock_slowlock+186} RSP - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/