public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.0-test13-pre1 lockup: run_task_queue or tty_io are wrong
@ 2000-12-17  2:49 Petr Vandrovec
  2000-12-17  3:09 ` Linus Torvalds
  0 siblings, 1 reply; 11+ messages in thread
From: Petr Vandrovec @ 2000-12-17  2:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

Hi,
  my 2.4.0-test13-pre1 just stopped answering to my keystrokes.
I've found that it is looping in tqueue_bh and flush_to_ldisc
still again and again.

  To my surprise I found that flush_to_ldisc() does

if (test_bit(TTY_DONT_FLIP, &tty_flags)) {
   queue_task(&tty->filp.tqueue, &tq_timer);
   return;
}

Looks ok. But only until you'll look at run_task_queue().
It now contains

  while (!list_empty(list)) {
      ...
  }

So postponing event to next timer tick does not work anymore.
It will stop cycling in run_task_queue and machine is dead
(unless you have some spare CPU).

Is current run_task_queue() behavior intentional, or is it
only bug introduced by changing task queue to list based
implementation?
					Thanks,
						Petr Vandrovec
						vandrove@vc.cvut.cz

P.S.: Yes, I know that I should bought faster computer so that
ldisc buffer does not overflow, but...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-12-19  2:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-17  2:49 2.4.0-test13-pre1 lockup: run_task_queue or tty_io are wrong Petr Vandrovec
2000-12-17  3:09 ` Linus Torvalds
2000-12-17  3:49   ` Petr Vandrovec
2000-12-17  7:25   ` Andrew Morton
2000-12-17 18:23   ` Jamie Lokier
2000-12-17 20:02     ` Linus Torvalds
2000-12-17 21:05       ` Jeff V. Merkey
2000-12-17 20:23         ` Linus Torvalds
2000-12-18 20:51       ` Jamie Lokier
2000-12-18 23:58         ` Linus Torvalds
2000-12-19  1:32           ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox