lkml.org 
[lkml]   [2013]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 24/24] n_tty: Queue buffer work on any available cpu
    Date
    Scheduling buffer work on the same cpu as the read() thread
    limits the parallelism now possible between the receive_buf path
    and the n_tty_read() path.

    Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
    ---
    drivers/tty/n_tty.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
    index 5211de2..4dbb558 100644
    --- a/drivers/tty/n_tty.c
    +++ b/drivers/tty/n_tty.c
    @@ -198,7 +198,7 @@ static void n_tty_set_room(struct tty_struct *tty)
    */
    WARN_RATELIMIT(test_bit(TTY_LDISC_HALTED, &tty->flags),
    "scheduling buffer work for halted ldisc\n");
    - schedule_work(&tty->port->buf.work);
    + queue_work(system_unbound_wq, &tty->port->buf.work);
    }
    }

    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-04-15 19:01    [W:4.150 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site