diff options
| author | Cong Wang <[email protected]> | 2015-06-24 19:41:47 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-07-06 12:15:08 +0000 |
| commit | d49db342f0e276b354383b3281c5668b6b80f5c2 (patch) | |
| tree | 646345871947652187cedb234ee08ffb2ef4974e /scripts/asn1_compiler.c | |
| parent | Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-d49db342f0e276b354383b3281c5668b6b80f5c2.tar.gz kernel-d49db342f0e276b354383b3281c5668b6b80f5c2.zip | |
sched/fair: Test list head instead of list entry in throttle_cfs_rq()
According to the comments, we need to test if this is
the first throttled task, however, list_empty() tests on
the entry cfs_rq->throttled_list, not the head, this is wrong.
This is a bug because we don't re-init the list entry after
removing it from the list, so list_empty() could return false
even if the list is really empty.
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Ben Segall <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/asn1_compiler.c')
0 files changed, 0 insertions, 0 deletions
