kernel-fxtec-pro1x/arch
Jeff Dike d79a580936 [PATCH] uml: console locking fixes
Clean up the console driver locking.  There are various problems here,
including sleeping under a spinlock and spinlock recursion, some of which are
fixed here.  This patch deals with the locking involved with opens and closes.
 The problem is that an mconsole request to change a console's configuration
can race with an open.  Changing a configuration should only be done when a
console isn't opened.  Also, an open must be looking at a stable
configuration.  In addition, a get configuration request must observe the same
locking since it must also see a stable configuration.  With the old locking,
it was possible for this to hang indefinitely in some cases because open would
block for a long time waiting for a connection from the host while holding the
lock needed by the mconsole request.

As explained in the long comment, this is fixed by adding a spinlock for the
use count and configuration and a mutex for the actual open and close.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 10:51:21 -08:00
..
alpha [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
arm [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
arm26 [PATCH] ARM26: Use ARRAY_SIZE macro when appropriate 2007-02-11 10:51:19 -08:00
avr32 [AVR32] Add missing #include <linux/module.h> 2007-02-09 15:23:46 +01:00
cris [PATCH] CRIS: TLB handling: turn local_save_flags() + local_irq_disable() into local_irq_save() 2007-02-11 10:51:21 -08:00
frv [PATCH] optional ZONE_DMA: introduce CONFIG_ZONE_DMA 2007-02-11 10:51:18 -08:00
h8300 [PATCH] optional ZONE_DMA: introduce CONFIG_ZONE_DMA 2007-02-11 10:51:18 -08:00
i386 [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
ia64 [PATCH] optional ZONE_DMA: optional ZONE_DMA for ia64 2007-02-11 10:51:18 -08:00
m32r [PATCH] m32r: cosmetic updates and trivial fixes 2007-02-11 10:51:20 -08:00
m68k [PATCH] M68K: user ARRAY_SIZE macro when appropriate 2007-02-11 10:51:20 -08:00
m68knommu [PATCH] M68KNOMMU: user ARRAY_SIZE macro when appropriate 2007-02-11 10:51:20 -08:00
mips [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
parisc [PATCH] optional ZONE_DMA: remove ZONE_DMA remains from parisc 2007-02-11 10:51:18 -08:00
powerpc [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
ppc [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
s390 [PATCH] optional ZONE_DMA: introduce CONFIG_ZONE_DMA 2007-02-11 10:51:18 -08:00
sh [PATCH] optional ZONE_DMA: remove ZONE_DMA remains from sh/sh64 2007-02-11 10:51:18 -08:00
sh64 [PATCH] optional ZONE_DMA: remove ZONE_DMA remains from sh/sh64 2007-02-11 10:51:18 -08:00
sparc [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
sparc64 [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
um [PATCH] uml: console locking fixes 2007-02-11 10:51:21 -08:00
v850 [PATCH] optional ZONE_DMA: introduce CONFIG_ZONE_DMA 2007-02-11 10:51:18 -08:00
x86_64 [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
xtensa [PATCH] optional ZONE_DMA: introduce CONFIG_ZONE_DMA 2007-02-11 10:51:18 -08:00