From: Ingo Molnar The attached patch fixes long scheduling latencies in pty_read()caused by the BKL. Has been tested as part of the -VP patchset and in earlier -mm trees. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton --- 25-akpm/drivers/char/pty.c | 1 + 1 files changed, 1 insertion(+) diff -puN drivers/char/pty.c~sched-pty-fix-scheduling-latencies-in-ptyc drivers/char/pty.c --- 25/drivers/char/pty.c~sched-pty-fix-scheduling-latencies-in-ptyc Tue Sep 14 17:40:54 2004 +++ 25-akpm/drivers/char/pty.c Tue Sep 14 17:40:54 2004 @@ -139,6 +139,7 @@ static int pty_write(struct tty_struct * c += n; count -= n; to->ldisc.receive_buf(to, temp_buffer, NULL, n); + cond_resched(); } up(&tty->flip.pty_sem); } else { _