diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-07-10 07:45:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 16:24:24 -0400 |
commit | 2d77f6fcf841261796f01cba19b4ea1ad8713936 (patch) | |
tree | 4a6d2cc0d241c408d0b65b1a5aead845d8072caa /arch/um/drivers/mconsole_user.c | |
parent | 03a3f824eae944e9d3649cbccf874e7fbe228477 (diff) |
[PATCH] uml: make mconsole version requests happen in a process
Handling a host mconsole version request must be done in a process context
rather than interrupt context now that utsname information can be
process-specific rather than global.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/mconsole_user.c')
-rw-r--r-- | arch/um/drivers/mconsole_user.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/um/drivers/mconsole_user.c b/arch/um/drivers/mconsole_user.c index 4b109fe7fff8..9bfd405c3bd8 100644 --- a/arch/um/drivers/mconsole_user.c +++ b/arch/um/drivers/mconsole_user.c | |||
@@ -18,7 +18,12 @@ | |||
18 | #include "umid.h" | 18 | #include "umid.h" |
19 | 19 | ||
20 | static struct mconsole_command commands[] = { | 20 | static struct mconsole_command commands[] = { |
21 | { "version", mconsole_version, MCONSOLE_INTR }, | 21 | /* With uts namespaces, uts information becomes process-specific, so |
22 | * we need a process context. If we try handling this in interrupt | ||
23 | * context, we may hit an exiting process without a valid uts | ||
24 | * namespace. | ||
25 | */ | ||
26 | { "version", mconsole_version, MCONSOLE_PROC }, | ||
22 | { "halt", mconsole_halt, MCONSOLE_PROC }, | 27 | { "halt", mconsole_halt, MCONSOLE_PROC }, |
23 | { "reboot", mconsole_reboot, MCONSOLE_PROC }, | 28 | { "reboot", mconsole_reboot, MCONSOLE_PROC }, |
24 | { "config", mconsole_config, MCONSOLE_PROC }, | 29 | { "config", mconsole_config, MCONSOLE_PROC }, |