Skip to content
  • Arnd Bergmann's avatar
    tty: implement BTM as mutex instead of BKL · b07471fa
    Arnd Bergmann authored
    
    
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    b07471fa