lkml.org 
[lkml]   [2004]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch] sched, pty: fix scheduling latencies in pty.c

    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.

    Ingo

    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 <mingo@elte.hu>

    --- linux/drivers/char/pty.c.orig
    +++ linux/drivers/char/pty.c
    @@ -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 {
    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:2.377 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site