Debugging things like show_trace() may be called from any context
at all, and hence really cannot take locks. We just live with the
race possibilities.
One could possibly play games with spin_trylock, but I don't expect
it'd help much - if you failed to get the lock what can you do?
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/