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)
commit5fbf1a65dd53ef313783c34a0e93a6e29def6136
treee4631779d08d03cd27d0b4a5546e4a5768a77ead
parent501fed45b7e8836ee9373f4d31e2d85e3db6103a
Revert "tty: Fix race condition between __tty_buffer_request_room and flush_to_ldisc"

This reverts commit 6a20dbd6caa2358716136144bf524331d70b1e03.

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