n_tty: Queue buffer work on any available cpu
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:36 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:43:03 +0000 (16:43 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c

index 59eb444..a69470e 100644 (file)
@@ -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);
        }
 }