]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Use lockless flip buffer free list
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:06 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:08 +0000 (16:47 -0700)
commit792cf19e67873a1a77217f24e3c00b2e1dfc5c24
tree5c6a22458a7d756cbfe948bfb6b7d331af01610f
parentb27df5704c06da21b4cfd2b8aa25c7d302a9bbfc
tty: Use lockless flip buffer free list

In preparation for lockless flip buffers, make the flip buffer
free list lockless.

NB: using llist is not the optimal solution, as the driver and
buffer work may contend over the llist head unnecessarily. However,
test measurements indicate this contention is low.

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