From: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
To: Jeff Layton <jlayton@redhat.com>
Cc: linux-kernel@vger.kernel.org,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: wait_even_interruptible_timeout(), signal, spin_lock() = system hang
Date: Fri, 4 Jun 2010 07:13:00 -0500 [thread overview]
Message-ID: <AANLkTimnSAvy4JmNiEyrgA_wXDNC9FphneDhNhe8FY5D@mail.gmail.com> (raw)
In-Reply-To: <20100604075148.5bcd7c8d@corrin.poochiereds.net>
On Fri, Jun 4, 2010 at 6:51 AM, Jeff Layton <jlayton@redhat.com> wrote:
> On Fri, 28 May 2010 11:44:46 -0500
> Shirish Pargaonkar <shirishpargaonkar@gmail.com> 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
>>
>> rc = wait_event_interruptible_timeout(ses->server->response_q,
>> (midQ->midState != MID_REQUEST_SUBMITTED), timeout);
>> if (rc < 0) {
>> cFYI(1, ("command 0x%x interrupted", midQ->command));
>> return -1;
>> }
>>
>> and when function that invoking function after coming out with ERESTARTSYS
>> (I kill the command with Ctrl C) calls
>> spin_lock(&GlobalMid_Lock);
>>
>> system hangs. If I sleep before return -1 (e.g. msleep(1), no hang)
>>
>
> Sounds like a race of some sort, but could also be that msleep() is
> doing something (perhaps relating to the pending signal) that prevents
> the hang. Without some sort of clue as to what the box is hung on at
> the time there is no way to know.
>
>> I do not have to use wait_event_interruptible_timeout and no such problems with
>> wait_event_timeout, it is only when signal/interrupt is involved, I
>> run into this problem
>>
>> Any pointers/ideas what could be happening, would be really really appreciated.
>>
>
> No idea right offhand. I'd suggest getting a core or sysrq data and see
> what it's doing.
>
> --
> Jeff Layton <jlayton@redhat.com>
>
Jeff, Thanks. The system hangs really hard. It does not respond to
Alt ScrLk Ctrl ScrLk
key sequence at the text mode console i.e. nothing gets logged in
/var/log/messages.
Regards,
Shirish
next prev parent reply other threads:[~2010-06-04 12:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 16:44 wait_even_interruptible_timeout(), signal, spin_lock() = system hang Shirish Pargaonkar
2010-06-04 11:51 ` Jeff Layton
2010-06-04 12:13 ` Shirish Pargaonkar [this message]
2010-06-05 13:57 ` Shirish Pargaonkar
2010-06-06 8:00 ` Maciej Rutecki
2010-06-06 14:25 ` Shirish Pargaonkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimnSAvy4JmNiEyrgA_wXDNC9FphneDhNhe8FY5D@mail.gmail.com \
--to=shirishpargaonkar@gmail.com \
--cc=jlayton@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).