From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maciej Rutecki Subject: Re: wait_even_interruptible_timeout(), signal, spin_lock() = system hang Date: Sun, 6 Jun 2010 10:00:19 +0200 Message-ID: <201006061000.19503.maciej.rutecki@gmail.com> References: Reply-To: maciej.rutecki@gmail.com Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, "linux-fsdevel" To: Shirish Pargaonkar Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:58006 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752593Ab0FFIAY convert rfc822-to-8bit (ORCPT ); Sun, 6 Jun 2010 04:00:24 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: I created a Bugzilla entry at=20 https://bugzilla.kernel.org/show_bug.cgi?id=3D16139 for your bug report, please add your address to the CC list in there, t= hanks! On pi=C4=85tek, 28 maja 2010 o 18:44:46 Shirish Pargaonkar wrote: > After this sequence of calls, system hangs (smp, x86 box based with > .34 kernel), can ping only. > I have not been able to break in with Alt Sysrq t, working on that >=20 > rc =3D wait_event_interruptible_timeout(ses->server->response= _q, > (midQ->midState !=3D MID_REQUEST_SUBMITTED), > timeout); if (rc < 0) { > cFYI(1, ("command 0x%x interrupted", midQ->command)); > return -1; > } >=20 > and when function that invoking function after coming out with ERESTA= RTSYS > (I kill the command with Ctrl C) calls > spin_lock(&GlobalMid_Lock); >=20 > system hangs. If I sleep before return -1 (e.g. msleep(1), no hang) >=20 > I do not have to use wait_event_interruptible_timeout and no such pro= blems > with wait_event_timeout, it is only when signal/interrupt is involve= d, I > run into this problem >=20 > Any pointers/ideas what could be happening, would be really really > appreciated. >=20 > Regards, >=20 > Shirish > -- > To unsubscribe from this list: send the line "unsubscribe linux-kerne= l" 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/ >=20 --=20 Maciej Rutecki http://www.maciek.unixy.pl -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html