From 3afb1b394a49d1237c9c0af8e8b724ddfe5b94ba Mon Sep 17 00:00:00 2001 From: Peter Hurley Date: Tue, 23 Jul 2013 08:47:30 -0400 Subject: [PATCH] n_tty: Special case pty flow control The pty driver forces ldisc flow control on, regardless of available receive buffer space, so the writer can be woken whenever unthrottle is called. However, this 'forced throttle' has performance consequences, as multiple atomic operations are necessary to unthrottle and perform the write wakeup for every input line (in canonical mode). Instead, short-circuit the unthrottle if the tty is a pty and perform the write wakeup directly. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed