Commit 851a723
sched: Always clear user_cpus_ptr in do_set_cpus_allowed()
The do_set_cpus_allowed() function is used by either kthread_bind() or
select_fallback_rq(). In both cases the user affinity (if any) should be
destroyed too.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220922180041.1768141-6-longman@redhat.com1 parent da01903 commit 851a723
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2593 | 2593 | | |
2594 | 2594 | | |
2595 | 2595 | | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2596 | 2600 | | |
2597 | 2601 | | |
2598 | 2602 | | |
2599 | 2603 | | |
2600 | | - | |
| 2604 | + | |
| 2605 | + | |
2601 | 2606 | | |
2602 | 2607 | | |
2603 | 2608 | | |
| 2609 | + | |
2604 | 2610 | | |
2605 | 2611 | | |
2606 | 2612 | | |
| |||
0 commit comments