tty: implement BTM as mutex instead of BKL
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Aug 2010 19:40:30 +0000 (21:40 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:44 +0000 (13:47 -0700)
commitb07471fa51358ce64cc25e1501544502362e4404
tree0bd1889eb3cbabe51f15cc5e971f9644cdced0f3
parentddcd9fb66ae7f448b517242c10a31d4e17bcad45
tty: implement BTM as mutex instead of BKL

The tty locking now follows the rules for mutexes, so
we can replace the BKL usage with a new subsystem
wide mutex.

Using a regular mutex here will change the behaviour
when blocked on the BTM from spinning to sleeping,
but that should not be visible to the user.

Using the mutex also means that all the BTM is now
covered by lockdep.

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>
drivers/char/Makefile
drivers/char/tty_mutex.c [new file with mode: 0644]
include/linux/tty.h
This page took 0.02584 seconds and 5 git commands to generate.