I think you should acquire the console_lock spinlock before changing these
variables.
see linux/kernel/printk.c, do_syslog().
Note that the spinlock calls around "console_loglevel=minimum_loglevel" were
added to be on the safe side: console_loglevel is not atomic_t, and I don't
want to assume that setting a 32-bit value is atomic for all architectures.
-- Manfred
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/