]> git.karo-electronics.de Git - linux-beck.git/commit
tty: untangle locking of wait_until_sent
authorArnd Bergmann <arnd@arndb.de>
Tue, 1 Jun 2010 20:53:07 +0000 (22:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:43 +0000 (13:47 -0700)
commit203652192634c1fce5e79df0a8ff2fabfaefd3ab
tree9c2ee78c04b0750220fa34e7adc541c16bf21e90
parent60af22d2ed490554cc92c8d0fed0b5b9cf687568
tty: untangle locking of wait_until_sent

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: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/amiserial.c
drivers/serial/68360serial.c
drivers/serial/crisv10.c
drivers/serial/serial_core.c