diff options
| author | 2013-03-11 16:44:25 -0400 | |
|---|---|---|
| committer | 2013-03-18 16:32:46 -0700 | |
| commit | 2276ad9765b395577442d6ddf748f72c329234ae (patch) | |
| tree | 2bb38f14940040b468df429487b1377ec3810494 /include/linux/timerqueue.h | |
| parent | tty: Refactor wait for ldisc refs out of tty_ldisc_hangup() (diff) | |
tty: Remove unnecessary re-test of ldisc ref count
Since the tty->ldisc is prevented from being changed by tty_set_ldisc()
when a tty is being hung up, re-testing the ldisc user count is
unnecessary -- ie, it cannot be a different ldisc and the user count
cannot have increased (assuming the caller meets the precondition that
TTY_LDISC flag is cleared)
Removal of the 'early-out' locking optimization is necessary for
the subsequent patch 'tty: Fix ldisc halt sequence on hangup'.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
