]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: Fix flip_buf full handling
authorJeff Dike <jdike@addtoit.com>
Fri, 6 Jan 2006 08:18:58 +0000 (00:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:46 +0000 (08:33 -0800)
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 <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/drivers/chan_kern.c

index 1bb920c0d77aee434a5a926c4ddb6dbc44521b18..36df55ad64c2e1e2fbcbbf5e7a9b5803f9b98478 100644 (file)
@@ -629,7 +629,7 @@ void chan_interrupt(struct list_head *chans, struct work_struct *task,
                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);