kernel-ark/arch/um/drivers
Paolo 'Blaisorblade' Giarrusso 71c8d4c3aa [PATCH] uml: fix spinlock recursion and sleep-inside-spinlock in error path
In this error path, when the interface has had a problem, we call dev_close(),
which is disallowed for two reasons:

*) takes again the UML internal spinlock, inside the ->stop method of this
   device
*) can be called in process context only, while we're in interrupt context.

I've also thought that calling dev_close() may be a wrong policy to follow,
but it's not up to me to decide that.

However, we may end up with multiple dev_close() queued on the same device.
But the initial test for (dev->flags & IFF_UP) makes this harmless, though -
and dev_close() is supposed to care about races with itself.  So there's no
harm in delaying the shutdown, IMHO.

Something to mark the interface as "going to shutdown" would be appreciated,
but dev_deactivate has the same problems as dev_close(), so we can't use it
either.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-18 19:20:21 -08:00
..
chan_kern.c
chan_user.c
cow_sys.h
cow_user.c
cow.h
daemon_kern.c [PATCH] uml: make daemon transport behave properly 2006-01-18 19:20:20 -08:00
daemon_user.c [PATCH] uml: make daemon transport behave properly 2006-01-18 19:20:20 -08:00
daemon.h
fd.c [PATCH] uml: move libc-dependent utility procedures 2006-01-18 19:20:19 -08:00
harddog_kern.c
harddog_user.c
hostaudio_kern.c
line.c
Makefile
mcast_kern.c
mcast_user.c
mcast.h
mconsole_kern.c
mconsole_user.c
mmapper_kern.c
net_kern.c [PATCH] uml: fix spinlock recursion and sleep-inside-spinlock in error path 2006-01-18 19:20:21 -08:00
net_user.c
null.c
pcap_kern.c
pcap_user.c
pcap_user.h
port_kern.c
port_user.c
port.h
pty.c
random.c
slip_common.c
slip_common.h
slip_kern.c
slip_user.c
slip.h
slirp_kern.c
slirp_user.c
slirp.h
ssl.c
ssl.h
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd_kern.c [PATCH] uml: kill an unused variable 2006-01-11 18:42:10 -08:00
ubd_user.c
xterm_kern.c
xterm.c
xterm.h