• Arnd Bergmann's avatar
    tty: untangle locking of wait_until_sent · 20365219
    Arnd Bergmann authored
    Some wait_until_sent versions require the big
    tty mutex, others don't and some callers of
    wait_until_sent already hold it while other don't.
    That leads to recursive use of the BTM in these
    functions, which we're trying to get rid of.
    
    This turns all cleans up the locking there so
    that the driver's wait_until_sent function
    never takes the BTM itself if it is already
    called with that lock held.
    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>
    20365219
68360serial.c 74.4 KB