Files
linux-stable-mirror/include/linux
Thomas Gleixner 6301cb95c1 sched: fix nr_uninterruptible accounting of frozen tasks really
commit e3c8ca8336 (sched: do not count frozen tasks toward load) broke
the nr_uninterruptible accounting on freeze/thaw. On freeze the task
is excluded from accounting with a check for (task->flags &
PF_FROZEN), but that flag is cleared before the task is thawed. So
while we prevent that the task with state TASK_UNINTERRUPTIBLE
is accounted to nr_uninterruptible on freeze we decrement
nr_uninterruptible on thaw.

Use a separate flag which is handled by the freezing task itself. Set
it before calling the scheduler with TASK_UNINTERRUPTIBLE state and
clear it after we return from frozen state.

Cc: <stable@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2009-07-18 14:19:53 +02:00
..
2009-06-30 18:56:00 -07:00
2009-07-12 12:22:34 -07:00
2009-06-30 18:55:58 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 13:02:10 -07:00
2009-07-08 09:18:05 -07:00
2009-06-30 18:56:00 -07:00
2009-06-30 20:12:24 +02:00
2009-07-12 12:22:34 -07:00
2009-07-17 21:47:44 +09:30
2009-07-08 09:31:56 -07:00
2009-06-30 18:55:59 -07:00
2009-07-12 12:22:34 -07:00
2009-07-06 13:57:03 -07:00
2009-07-12 15:16:39 -07:00
2009-07-17 21:47:47 +09:30