[PATCH] uml: mconsole locking
Locking fixes. Locking was totally lacking for the mconsole_devices, which got a spin lock, and the unplugged pages data, which got a mutex. The locking of the mconsole console output code was confused. Now, the console_lock (renamed to client_lock) protects the clients list. 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>
This commit is contained in:
committed by
Linus Torvalds
parent
d471c0fca7
commit
84f48d4f2b
@@ -690,6 +690,7 @@ static int net_remove(int n, char **error_out)
|
||||
}
|
||||
|
||||
static struct mc_device net_mc = {
|
||||
.list = LIST_HEAD_INIT(net_mc.list),
|
||||
.name = "eth",
|
||||
.config = net_config,
|
||||
.get_config = NULL,
|
||||
|
Reference in New Issue
Block a user