mm: correctly synchronize rss-counters at exit/exec
[linux-2.6.git] / kernel / watchdog.c
index a01cb03..df30ee0 100644 (file)
@@ -349,6 +349,10 @@ static int watchdog(void *unused)
 
                set_current_state(TASK_INTERRUPTIBLE);
        }
+       /*
+        * Drop the policy/priority elevation during thread exit to avoid a
+        * scheduling latency spike.
+        */
        __set_current_state(TASK_RUNNING);
        sched_setscheduler(current, SCHED_NORMAL, &param);
        return 0;