projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc575ee
)
tty: Don't protect atomic operation with mutex
author
Peter Hurley
<peter@hurleysoftware.com>
Mon, 11 Mar 2013 20:44:39 +0000
(16:44 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:46:31 +0000
(16:46 -0700)
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>
drivers/tty/tty_io.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index f6ce2c5fbe5b9c8ccd88e68ec2a0b7764faeed5c..6afca98fae21654e73a1275886ed7832cef0fe66 100644
(file)
--- 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;
}