[PATCH 25/31] tty: introduce wait_event_interruptible_tty
Calling wait_event_interruptible implicitly releases the BKL when it sleeps, but we need to do this explcitly when we have converted it to a mutex. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/char/cyclades.c | 2 +- drivers/char/istallion.c | 12 ++++++++---- drivers/char/n_r3964.c | ... 1 Jun 2010 17:31
[PATCH 04/31] isicom: kill off the BKL
From: Alan Cox <alan(a)linux.intel.com> As with the others we can use the port mutex to get the needed locking properties and fix the race with open. Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/isicom.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/d... 1 Jun 2010 17:31
[PATCH 26/31] tty: reorder ldisc locking
We need to release the BTM in paste_selection() when sleeping in tty_ldisc_ref_wait to avoid deadlocks with tty_ldisc_enable. In tty_set_ldisc, we now always grab the BTM before taking the ldisc_mutex in order to avoid AB-BA deadlocks between the two. tty_ldisc_halt potentially blocks on a workqueue function... 1 Jun 2010 17:30
[PATCH 31/31] 8250: fix set_ldisc operation
The ldisc number now gets passed into ->set_ldisc. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/serial/8250.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 891e1dd..93c8358 100644 --- a/drivers/serial/8250.c +... 1 Jun 2010 17:30
[PATCH 09/31] specialix; Kill the BKL
From: Alan Cox <alan(a)linux.intel.com> Use the port mutex instead Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/specialix.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c index 2c24fcd..7be456f 100644 ... 1 Jun 2010 17:30
[PATCH 15/31] tty: Make vt's have a tty_port
From: Alan Cox <alan(a)linux.intel.com> The vt layer isn't safely handling reference counts to tty object on the input side. Add a tty port structure to the vt layer in order to implement this using the standard helpers. Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/vt.c | 2 +... 1 Jun 2010 17:30
[PATCH 00/31] tty: BKL removal
Hi Greg, As promised, here is a resend of the patches from both Alan and myself, making the BKL optional in the TTY layer. Please apply to your tty-next tree. Arnd -- Alan Cox (20): stallion: prune lock_kernel calls istallion: use bit ops for the board flags riscom8: kill use of lock_kernel ... 1 Jun 2010 17:30
[PATCH 23/31] tty: fix console_sem lock order
vgacon_do_font_op releases and reacquires the BTM while holding console_sem. This violates the rule that BTM has to be the outer lock whenever we hold both. There does not seem to be any reason to give up the BTM here, so just stop doing that. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/video/c... 1 Jun 2010 17:30
[PATCH 24/31] cdc-acm: remove dead code
The wait_event_interruptible_timeout in acm_port_down is never reached. Remove it to avoid possible deadlocks with the big tty mutex if someone were to start using the blocking version of acm_port_down. Signed-off-by: Arnd Bergmann <arnd(a)arndb.de> --- drivers/usb/class/cdc-acm.c | 12 +++--------- 1 files c... 1 Jun 2010 17:30
[PATCH 14/31] vc: Locking clean up
From: Alan Cox <alan(a)linux.intel.com> The virtual console layer uses the BKL for various things that don't really need it. Clean them out. Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/selection.c | 4 ++++ drivers/char/vt.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 del... 1 Jun 2010 17:30