From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753999Ab0CZVpq (ORCPT ); Fri, 26 Mar 2010 17:45:46 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:61888 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413Ab0CZVpp (ORCPT ); Fri, 26 Mar 2010 17:45:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=AIS6Gn+ioNl1fxpH2Lk5gm7R0yXEy5OuWRs8MwA3WGA0jok4s3nEoCXkWBimI/WI6u oC3ZVL3BKOnZN8uISUnEbdPTOF+pEXTJzXCW9ciNO8N7ZqqgXPGrrbWkTGDPBTeLhN9Q JlY/xhiqK1qYTgVF8uuYNSIbWR1IaOtTRxb0Y= Date: Fri, 26 Mar 2010 22:45:44 +0100 From: Frederic Weisbecker To: Mike Galbraith Cc: Li Zefan , LKML , Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Paul Mackerras Subject: Re: [BUG] perf: hard lockup when using perf-sched Message-ID: <20100326214542.GF7166@nowhere> References: <4BA9A885.9050105@cn.fujitsu.com> <1269415964.6530.25.camel@marge.simson.net> <1269418671.6465.6.camel@marge.simson.net> <4BAB1924.4060304@cn.fujitsu.com> <1269509241.8438.30.camel@marge.simson.net> <1269598293.6174.8.camel@marge.simson.net> <20100326172350.GC5188@nowhere> <1269630640.6331.18.camel@marge.simson.net> <20100326192712.GA7166@nowhere> <1269634924.6488.6.camel@marge.simson.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1269634924.6488.6.camel@marge.simson.net> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2010 at 09:22:04PM +0100, Mike Galbraith wrote: > [ 427.931717] > [ 427.931717] [] __delay+0xa/0xc > [ 427.931717] [] do_raw_spin_lock+0xd2/0x13c > [ 427.931717] [] _raw_spin_lock+0x34/0x3b > [ 427.931717] [] ? task_rq_lock+0x7c/0x97 > [ 427.931717] [] ? trace_hardirqs_on+0xd/0xf > [ 427.931717] [] task_rq_lock+0x7c/0x97 > [ 427.931717] [] try_to_wake_up+0x26/0x266 > [ 427.931717] [] wake_up_process+0x10/0x12 > [ 427.931717] [] wakeup_softirqd+0x2a/0x2c > [ 427.931717] [] __do_softirq+0x21e/0x220 > [ 427.931717] [] ? __task_pid_nr_ns+0x0/0xad > [ 427.931717] [] call_softirq+0x1c/0x28 > [ 427.931717] [] do_softirq+0x38/0x81 > [ 427.931717] [] irq_exit+0x45/0x87 > [ 427.931717] [] smp_apic_timer_interrupt+0x88/0x96 > [ 427.931717] [] apic_timer_interrupt+0x13/0x20 > [ 427.931717] > [ 427.931717] [] ? lock_acquire+0x108/0x117 > [ 427.931717] [] ? __task_pid_nr_ns+0x0/0xad > [ 427.931717] [] ? perf_output_begin+0x0/0x24d > [ 427.931717] [] __task_pid_nr_ns+0x3c/0xad > [ 427.931717] [] ? __task_pid_nr_ns+0x0/0xad > [ 427.931717] [] perf_event_tid+0x26/0x28 > [ 427.931717] [] perf_event_task_output+0x74/0x9f > [ 427.931717] [] perf_event_task_ctx+0x3b/0x5b > [ 427.931717] [] perf_event_task_event+0x53/0xca > [ 427.931717] [] ? perf_event_task_event+0x0/0xca > [ 427.931717] [] perf_event_task+0x7b/0x86 > [ 427.931717] [] perf_event_fork+0x10/0x12 Aaah, I see now. That happens during a fork event! So that looks indeed the right fix.