Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0f947c1 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

n_tty: Queue buffer work on any available cpu



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: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3afb1b39
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -198,7 +198,7 @@ static void n_tty_set_room(struct tty_struct *tty)
		 */
		 */
		WARN_RATELIMIT(test_bit(TTY_LDISC_HALTED, &tty->flags),
		WARN_RATELIMIT(test_bit(TTY_LDISC_HALTED, &tty->flags),
			       "scheduling buffer work for halted ldisc\n");
			       "scheduling buffer work for halted ldisc\n");
		schedule_work(&tty->port->buf.work);
		queue_work(system_unbound_wq, &tty->port->buf.work);
	}
	}
}
}