tty: Make driver-side flip buffers lockless
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:09 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:09 +0000 (16:47 -0700)
commite8437d7ecbc50198705331449367d401ebb3181f
treea5e2eff33c0ea9b5349bb03e890f3768730365e2
parent7bfe0b7116be207cf2204ae06335cc89d8f8ee02
tty: Make driver-side flip buffers lockless

Driver-side flip buffer input is already single-threaded; 'publish'
the .next link as the last operation on the tail buffer so the
'consumer' sees the already-completed flip buffer.

The commit buffer index is already 'published' by driver-side functions.

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