]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Avoid false-sharing echo buffer indices
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 14:04:29 +0000 (10:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 00:02:22 +0000 (17:02 -0700)
commita2d4579faeeb4ffe58262fab51896de83e94c56e
treef5ab13fd7bbc7ff99ccc44ecf127fede65452dc2
parent099b12ea8b3fd89bd45363f6b92c2c12b59d3665
n_tty: Avoid false-sharing echo buffer indices

Separate the head & commit indices from the tail index to avoid
cache-line contention (so called 'false-sharing') between concurrent
threads.

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