tty: r3964: Replace/remove bogus tty lock use
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 10 Oct 2015 20:00:56 +0000 (16:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:11:29 +0000 (21:11 -0700)
commitaba24888d9af19e0bd1c7e7344fd27841611d7a8
tree8a463e798166f2a6938687b3b2c9b32dbf385f1e
parent9b9ab1b3f0860138681862cf6e4c48be59377ef1
tty: r3964: Replace/remove bogus tty lock use

The tty lock is strictly for serializing tty lifetime events
(open/close/hangup), and not for line discipline serialization.

The tty core already provides serialization of concurrent writes
to the same tty, and line discipline lifetime management (by ldisc
references), so pinning the tty via tty_lock() is unnecessary and
counter-productive; remove tty lock use.

However, the line discipline is responsible for serializing reads
(if required by the line discipline); add read_lock mutex to
serialize calls of r3964_read().

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
This page took 0.028253 seconds and 5 git commands to generate.