|
From: Luck, T. <ton...@in...> - 2012-01-05 19:07:29
|
- kmsg_dump(KMSG_DUMP_PANIC); - /* * Note smp_send_stop is the usual smp shutdown function, which * unfortunately means it may not be hardened to work in a panic @@ -117,6 +115,8 @@ void panic(const char *fmt, ...) */ smp_send_stop(); + kmsg_dump(KMSG_DUMP_PANIC); + Aren't you worried about the comment about smp_send_stop() not being hardened to work in a panic situation? If it does work - we are clearly much better off moving the kmsg_dump() call down like this. It makes life much simpler and cleaner to work with just one running cpu. But if something goes wrong - we might not see the dump at all! How do we compare these cases and decide that it is better to trust that smp_send_stop() will return? -Tony |