KVM: MMU: Concurrent guest walkers
[sfrench/cifs-2.6.git] / lib / bust_spinlocks.c
index accb3565816993630ab98bc7818f3afe75307fa5..486da62b2b070368f30d53b8feb2de33f0a5167a 100644 (file)
 void __attribute__((weak)) bust_spinlocks(int yes)
 {
        if (yes) {
-               oops_in_progress = 1;
+               ++oops_in_progress;
        } else {
 #ifdef CONFIG_VT
                unblank_screen();
 #endif
-               oops_in_progress = 0;
-               wake_up_klogd();
+               if (--oops_in_progress == 0)
+                       wake_up_klogd();
        }
 }