diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-03-12 00:44:40 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-19 03:48:42 +0400 |
commit | ebc9baed42e42f9b51cf61672b7afb72f068d523 (patch) | |
tree | 2438eccbfddbfde6ff8a388f2dcf049913b4db8e /drivers/video/g364fb.c | |
parent | 8842dda2366d3d0c97646102768831f9b0ffd712 (diff) | |
download | linux-ebc9baed42e42f9b51cf61672b7afb72f068d523.tar.xz |
tty: Separate release semantics of ldisc reference
tty_ldisc_ref()/tty_ldisc_unref() have usage semantics
equivalent to down_read_trylock()/up_read(). Only
callers of tty_ldisc_put() are performing the additional
operations necessary for proper ldisc teardown, and then only
after ensuring no outstanding 'read lock' remains.
Thus, tty_ldisc_unref() should never be the last reference;
WARN if it is. Conversely, tty_ldisc_put() should never be
destructing if the use count != 1.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/g364fb.c')
0 files changed, 0 insertions, 0 deletions