]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28c12ba3e622f1af4ccf57e4380e7d906cd0b60f
treec60c359eb4398fae7687320fd2c89220916b9cb9
parenta876463630529a22b3a0bef10c8e897e00686f71
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