tty: Only perform flip buffer flush from tty_buffer_flush()
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:11 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:09 +0000 (16:47 -0700)
commitd7a68be4f265be10e24be931c257af30ca55566b
treec60c359eb4398fae7687320fd2c89220916b9cb9
parente9975fdec0138f1b2a85b9624e41660abd9865d4
tty: Only perform flip buffer flush from tty_buffer_flush()

Now that dropping the buffer lock is not necessary (as result of
converting the spin lock to a mutex), the flip buffer flush no
longer needs to be handled by the buffer work.

Simply signal a flush is required; the buffer work will exit the
i/o loop, which allows tty_buffer_flush() to proceed.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
include/linux/tty.h