diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-03-11 20:44:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-18 23:46:31 (GMT) |
commit | 8842dda2366d3d0c97646102768831f9b0ffd712 (patch) | |
tree | 4288315abbbe71ee92b55e69ddb70b48d6af75d4 /drivers | |
parent | fc575ee6eadbcac757e3216e230b6fab1ba5b140 (diff) | |
download | linux-8842dda2366d3d0c97646102768831f9b0ffd712.tar.xz |
tty: Don't protect atomic operation with mutex
test_bit() is already atomic; drop mutex lock/unlock.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/tty_io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index f6ce2c5..6afca98f 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -1391,9 +1391,7 @@ static int tty_reopen(struct tty_struct *tty) } tty->count++; - mutex_lock(&tty->ldisc_mutex); WARN_ON(!test_bit(TTY_LDISC, &tty->flags)); - mutex_unlock(&tty->ldisc_mutex); return 0; } |