diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-06-01 16:53:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 16:47:44 -0400 |
commit | ddcd9fb66ae7f448b517242c10a31d4e17bcad45 (patch) | |
tree | 54c5894f3c1dd45580cd45c621bbeb9174da879b /drivers/char/tty_ldisc.c | |
parent | 203652192634c1fce5e79df0a8ff2fabfaefd3ab (diff) |
tty: remove tty_lock_nested
This changes all remaining users of tty_lock_nested
to be non-recursive, which lets us kill this function.
As a consequence, we won't need to keep the lock count
any more, which allows more simplifications later.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/tty_ldisc.c')
-rw-r--r-- | drivers/char/tty_ldisc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/tty_ldisc.c b/drivers/char/tty_ldisc.c index 0f494799da89..412f9775d19c 100644 --- a/drivers/char/tty_ldisc.c +++ b/drivers/char/tty_ldisc.c | |||
@@ -450,9 +450,8 @@ static int tty_ldisc_open(struct tty_struct *tty, struct tty_ldisc *ld) | |||
450 | if (ld->ops->open) { | 450 | if (ld->ops->open) { |
451 | int ret; | 451 | int ret; |
452 | /* BTM here locks versus a hangup event */ | 452 | /* BTM here locks versus a hangup event */ |
453 | tty_lock_nested(); /* always held here already */ | 453 | WARN_ON(!tty_locked()); |
454 | ret = ld->ops->open(tty); | 454 | ret = ld->ops->open(tty); |
455 | tty_unlock(); | ||
456 | return ret; | 455 | return ret; |
457 | } | 456 | } |
458 | return 0; | 457 | return 0; |