[PATCH 11/12] UML - Fix flip_buf full handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When the tty flip_buf is full, it's a good idea to delay the input
processing for a jiffy, rather than just scheduling the tasklet
immediately.

Signed-off-by: Jeff Dike <[email protected]>

Index: linux-2.6.15/arch/um/drivers/chan_kern.c
===================================================================
--- linux-2.6.15.orig/arch/um/drivers/chan_kern.c	2005-12-25 22:35:58.000000000 -0500
+++ linux-2.6.15/arch/um/drivers/chan_kern.c	2005-12-25 22:42:14.000000000 -0500
@@ -629,7 +629,7 @@ void chan_interrupt(struct list_head *ch
 		do {
 			if((tty != NULL) &&
 			   (tty->flip.count >= TTY_FLIPBUF_SIZE)){
-				schedule_work(task);
+				schedule_delayed_work(task, 1);
 				goto out;
 			}
 			err = chan->ops->read(chan->fd, &c, chan->data);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux