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

This reverts commit f4d650f13806ccc08b27ba7fedfb7d4e404a1dbd.

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