tty: r3964: Use tty->read_wait waitqueue
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 10 Oct 2015 20:00:55 +0000 (16:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:11:29 +0000 (21:11 -0700)
commit9b9ab1b3f0860138681862cf6e4c48be59377ef1
tree5dcd70bcb2ab9a42db39a5c7d5311f08795d4a89
parentcc2aaabfd6d6335e2156781ca67715b4de17f993
tty: r3964: Use tty->read_wait waitqueue

The tty core provides read_wait waitqueue specifically for line
disciplines to wait readers; otherwise, the line discipline may
miss wakeups generated by the tty core.

NB: The tty core already provides serialization for the line discipline's
close() method, and guarantees no readers or writers will be using the
closing instance of the line discipline. Completely remove that wakeup.

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