Commit 9da6ccb
committed
sched/mmcid: Implement deferred mode change
When affinity changes cause an increase of the number of CPUs allowed for
tasks which are related to a MM, that might results in a situation where
the ownership mode can go back from per CPU mode to per task mode.
As affinity changes happen with runqueue lock held there is no way to do
the actual mode change and required fixup right there.
Add the infrastructure to defer it to a workqueue. The scheduled work can
race with a fork() or exit(). Whatever happens first takes care of it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251119172550.216484739@linutronix.de1 parent c809f08 commit 9da6ccb
2 files changed
+59
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10539 | 10539 | | |
10540 | 10540 | | |
10541 | 10541 | | |
| 10542 | + | |
| 10543 | + | |
| 10544 | + | |
| 10545 | + | |
| 10546 | + | |
| 10547 | + | |
| 10548 | + | |
10542 | 10549 | | |
10543 | | - | |
| 10550 | + | |
| 10551 | + | |
| 10552 | + | |
10544 | 10553 | | |
10545 | 10554 | | |
10546 | 10555 | | |
| |||
10553 | 10562 | | |
10554 | 10563 | | |
10555 | 10564 | | |
10556 | | - | |
| 10565 | + | |
10557 | 10566 | | |
10558 | 10567 | | |
10559 | 10568 | | |
| |||
10714 | 10723 | | |
10715 | 10724 | | |
10716 | 10725 | | |
10717 | | - | |
| 10726 | + | |
10718 | 10727 | | |
10719 | | - | |
10720 | | - | |
| 10728 | + | |
10721 | 10729 | | |
10722 | | - | |
10723 | | - | |
| 10730 | + | |
| 10731 | + | |
| 10732 | + | |
| 10733 | + | |
| 10734 | + | |
| 10735 | + | |
| 10736 | + | |
| 10737 | + | |
| 10738 | + | |
| 10739 | + | |
| 10740 | + | |
| 10741 | + | |
| 10742 | + | |
| 10743 | + | |
| 10744 | + | |
| 10745 | + | |
| 10746 | + | |
| 10747 | + | |
| 10748 | + | |
| 10749 | + | |
| 10750 | + | |
| 10751 | + | |
| 10752 | + | |
| 10753 | + | |
| 10754 | + | |
| 10755 | + | |
10724 | 10756 | | |
| 10757 | + | |
| 10758 | + | |
| 10759 | + | |
| 10760 | + | |
| 10761 | + | |
| 10762 | + | |
| 10763 | + | |
| 10764 | + | |
| 10765 | + | |
| 10766 | + | |
10725 | 10767 | | |
10726 | 10768 | | |
10727 | 10769 | | |
| |||
10731 | 10773 | | |
10732 | 10774 | | |
10733 | 10775 | | |
| 10776 | + | |
| 10777 | + | |
10734 | 10778 | | |
10735 | 10779 | | |
10736 | 10780 | | |
| |||
0 commit comments