Commit 0d032a4
sched/mmcid: Prevent pointless work in mm_update_cpus_allowed()
mm_update_cpus_allowed() is not required to be invoked for affinity changes
due to migrate_disable() and migrate_enable().
migrate_disable() restricts the task temporarily to a CPU on which the task
was already allowed to run, so nothing changes. migrate_enable() restores
the actual task affinity mask.
If that mask changed between migrate_disable() and migrate_enable() then
that change was already accounted for.
Move the invocation to the proper place to avoid that.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251119172549.385208276@linutronix.de1 parent b08ef5f commit 0d032a4
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
| 2687 | + | |
2687 | 2688 | | |
2688 | 2689 | | |
2689 | 2690 | | |
| |||
2730 | 2731 | | |
2731 | 2732 | | |
2732 | 2733 | | |
2733 | | - | |
2734 | 2734 | | |
2735 | 2735 | | |
2736 | 2736 | | |
| |||
10376 | 10376 | | |
10377 | 10377 | | |
10378 | 10378 | | |
10379 | | - | |
| 10379 | + | |
10380 | 10380 | | |
10381 | 10381 | | |
10382 | 10382 | | |
10383 | | - | |
| 10383 | + | |
| 10384 | + | |
| 10385 | + | |
| 10386 | + | |
| 10387 | + | |
10384 | 10388 | | |
| 10389 | + | |
10385 | 10390 | | |
10386 | 10391 | | |
10387 | 10392 | | |
| |||
0 commit comments