]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "tty: Fix race condition between __tty_buffer_request_room and flush_to_ldisc"
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 2 May 2014 14:56:11 +0000 (10:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 22:14:28 +0000 (18:14 -0400)
commit464c69efd08b7a1a1c8982b8fdb0aab7328d4cbf
treee4631779d08d03cd27d0b4a5546e4a5768a77ead
parent618c616e138913591a5cee1d71a312f6ef20293f
Revert "tty: Fix race condition between __tty_buffer_request_room and flush_to_ldisc"

This reverts commit 2903c05e579fee76a03bbd25068b358ca3873b48.

Although the commit correctly identifies an unsafe race condition
between __tty_buffer_request_room() and flush_to_ldisc(), the commit
fixes the race with an unnecessary spinlock in a lockless algorithm.

The follow-on commit, "tty: Fix lockless tty buffer race" fixes
the race locklessly.

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