linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wait_even_interruptible_timeout(), signal, spin_lock() = system hang
@ 2010-05-28 16:44 Shirish Pargaonkar
  2010-06-04 11:51 ` Jeff Layton
  2010-06-06  8:00 ` Maciej Rutecki
  0 siblings, 2 replies; 6+ messages in thread
From: Shirish Pargaonkar @ 2010-05-28 16:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-fsdevel

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)

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.

Regards,

Shirish

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-06 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-06-05 13:57     ` Shirish Pargaonkar
2010-06-06  8:00 ` Maciej Rutecki
2010-06-06 14:25   ` Shirish Pargaonkar

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).