Commit 657a9ae
committed
sched/fair: Fix NEXT_BUDDY
JIRA: https://issues.redhat.com/browse/RHEL-68342
commit 493afbd
Author: K Prateek Nayak <kprateek.nayak@amd.com>
Date: Thu Nov 28 12:59:54 2024 +0530
sched/fair: Fix NEXT_BUDDY
Adam reports that enabling NEXT_BUDDY insta triggers a WARN in
pick_next_entity().
Moving clear_buddies() up before the delayed dequeue bits ensures
no ->next buddy becomes delayed. Further ensure no new ->next buddy
ever starts as delayed.
Fixes: 152e11f ("sched/fair: Implement delayed dequeue")
Reported-by: Adam Li <adamli@os.amperecomputing.com>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Adam Li <adamli@os.amperecomputing.com>
Link: https://lkml.kernel.org/r/670a0d54-e398-4b1f-8a6e-90784e2fdf89@amd.com
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent 5b6c9b8 commit 657a9ae
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5502 | 5502 | | |
5503 | 5503 | | |
5504 | 5504 | | |
| 5505 | + | |
5505 | 5506 | | |
5506 | 5507 | | |
5507 | 5508 | | |
| |||
5518 | 5519 | | |
5519 | 5520 | | |
5520 | 5521 | | |
5521 | | - | |
5522 | | - | |
5523 | 5522 | | |
5524 | 5523 | | |
5525 | 5524 | | |
| |||
5544 | 5543 | | |
5545 | 5544 | | |
5546 | 5545 | | |
5547 | | - | |
5548 | | - | |
5549 | 5546 | | |
5550 | 5547 | | |
5551 | 5548 | | |
| |||
8821 | 8818 | | |
8822 | 8819 | | |
8823 | 8820 | | |
8824 | | - | |
| 8821 | + | |
8825 | 8822 | | |
8826 | 8823 | | |
8827 | 8824 | | |
| |||
0 commit comments