Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262128AbUANSND (ORCPT ); Wed, 14 Jan 2004 13:13:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262228AbUANSND (ORCPT ); Wed, 14 Jan 2004 13:13:03 -0500 Received: from intra.cyclades.com ([64.186.161.6]:61371 "EHLO intra.cyclades.com") by vger.kernel.org with ESMTP id S262128AbUANSMl (ORCPT ); Wed, 14 Jan 2004 13:12:41 -0500 Date: Wed, 14 Jan 2004 15:56:13 -0200 (BRST) From: Marcelo Tosatti X-X-Sender: marcelo@logos.cnet To: Simon Kirby Cc: Marcelo Tosatti , Andrew Morton , linux-kernel@vger.kernel.org, David Woodhouse Subject: Re: 2.4.24 SMP lockups In-Reply-To: <20040114170753.GB8467@netnation.com> Message-ID: References: <20040109210450.GA31404@netnation.com> <20040114170753.GB8467@netnation.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-220363116-1074102869=:14071" Content-ID: X-Cyclades-MailScanner-Information: Please contact the ISP for more information X-Cyclades-MailScanner: Found to be clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11063 Lines: 207 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --8323328-220363116-1074102869=:14071 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: On Wed, 14 Jan 2004, Simon Kirby wrote: > On Sat, Jan 10, 2004 at 05:32:55PM -0200, Marcelo Tosatti wrote: > > > This sounds like a deadlock. I wonder why the NMI watchdog is not > > triggering. > > Well, with the NMI watchdog working (nmi_watchdog=2), we just had another > occurrence. This time, I had the serial console ready. :) > > I'm guessing this is the same as the previous cases; however, this time > sysrq-P was able to print information from both CPUs. I assume the NMI > watchdog unlocked interrupts from what would have been the stuck CPU? > > NMI Watchdog detected LOCKUP on CPU0, eip c011c7cb, registers: > CPU: 0 > EIP: 0010:[] Not tainted > Using defaults from ksymoops -t elf32-i386 -a i386 > EFLAGS: 00000086 > eax: ddadf5d0 ebx: d8a2e000 ecx: 00000000 edx: d8a2fe50 > esi: d8a2fe50 edi: 00000286 ebp: 00020690 esp: d8a2fe30 > ds: 0018 es: 0018 ss: 0018 > Process php4 (pid: 19197, stackpage=d8a2f000) > Stack: d8a2e000 d8a2fe50 ddadf5d0 c015a8e4 00000000 d8a2e000 00000000 00000000 > 00000000 d8a2e000 ddadf5d4 ddadf5d4 ddadf520 ddadf520 c1ce4178 c015b40b > ddadf520 0000c82f 00000018 0000ffff c1ce4178 00020690 f7b73c00 c015b881 > Call Trace: [] [] [] [] [] > [] [] [] [] [] [] > Code: f3 90 7e f9 e9 8d e9 ff ff 80 3d c0 a3 31 c0 00 f3 90 7e f5 > > >>EIP; c011c7ca <.text.lock.fork+1a/120> <===== > Trace; c015a8e4 <__wait_on_freeing_inode+74/a0> > Trace; c015b40a > Trace; c015b880 > Trace; c0176e68 > Trace; c014e792 > Trace; c014ec7c > Trace; c014f258 > Trace; c014f81e > Trace; c01418ce > Trace; c0141cf2 > Trace; c010926e Thanks so much for this Simon. I'm not still sure why it is deadlocking. David Woodhouse and myself are taking a closer look. Anyway, please revert the attached patch and retry. It removes the "__wait_on_freeing_inode" logic. --8323328-220363116-1074102869=:14071 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=livio Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME=livio IyBUaGlzIGlzIGEgQml0S2VlcGVyIGdlbmVyYXRlZCBwYXRjaCBmb3IgdGhl IGZvbGxvd2luZyBwcm9qZWN0Og0KIyBQcm9qZWN0IE5hbWU6IExpbnV4IGtl cm5lbCB0cmVlDQojIFRoaXMgcGF0Y2ggZm9ybWF0IGlzIGludGVuZGVkIGZv ciBHTlUgcGF0Y2ggY29tbWFuZCB2ZXJzaW9uIDIuNSBvciBoaWdoZXIuDQoj IFRoaXMgcGF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Rf TElTVF9IRUFEKCZpbm9kZS0+aV9oYXNoKTsNCisJCQlzcGluX3VubG9jaygm aW5vZGVfbG9jayk7DQorCQkJd2FrZV91cCgmaW5vZGUtPmlfd2FpdCk7DQog CQkJaWYgKGlub2RlLT5pX3N0YXRlICE9IElfQ0xFQVIpDQogCQkJCUJVRygp Ow0KIAkJfSBlbHNlIHsNCg== --8323328-220363116-1074102869=:14071-- - 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/