[PATCH 23/31] tty: fix console_sem lock order
- From: Arnd Bergmann <arnd@xxxxxxxx>
- Date: Tue, 1 Jun 2010 22:53:03 +0200
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@xxxxxxxx>
---
drivers/video/console/vgacon.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 7197005..54e32c5 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -1108,7 +1108,6 @@ static int vgacon_do_font_op(struct vgastate *state,char *arg,int set,int ch512)
charmap += 4 * cmapsz;
#endif
- tty_unlock();
spin_lock_irq(&vga_lock);
/* First, the Sequencer */
vga_wseq(state->vgabase, VGA_SEQ_RESET, 0x1);
@@ -1192,7 +1191,6 @@ static int vgacon_do_font_op(struct vgastate *state,char *arg,int set,int ch512)
vga_wattr(state->vgabase, VGA_AR_ENABLE_DISPLAY, 0);
}
spin_unlock_irq(&vga_lock);
- tty_lock();
return 0;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 00/31] tty: BKL removal
- From: Arnd Bergmann
- [PATCH 00/31] tty: BKL removal
- Prev by Date: [PATCH 16/31] tty: Move the vt_tty field from the vc_data into the standard tty_port
- Next by Date: [PATCH 08/31] epca: Kill the big kernel lock
- Previous by thread: [PATCH 16/31] tty: Move the vt_tty field from the vc_data into the standard tty_port
- Next by thread: [PATCH 08/31] epca: Kill the big kernel lock
- Index(es):
Relevant Pages
|