On Tue, 2008-08-19 at 02:41 -0700, Andrew Morton wrote:
[...]
Yes. But the advantage is that we can use atomic_t in almost all header
files. I already have a patch for this.
The possibility of race is fairly low in real life. Multiple OOPS on
difference CPU occur simultaneously? But its possibility increases
significantly for kernel panic related regression testing. Recently, I
am working on a kernel MCE regression testing suite, where panic may be
triggered on multiple CPU simultaneously as the result of MCE. I can
observe the race condition at quite high possibility.
There is an issue of this solution, the oops_in_process is assigned
directly on some architecture. Although we can add a function such as
oops_in_progress_set(int val), it seems like a hack.
Best Regards,
Huang Ying
--