History

Merge tag 'cgroup-for-6.15-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Pull cgroup fix from Tejun Heo: "One low-risk patch to fix a cpuset bug where it over-eagerly tries to modify CPU affinity of kernel threads" * tag 'cgroup-for-6.15-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup/cpuset: Extend kthread_is_per_cpu() check to all PF_NO_SETAFFINITY tasks

Linus Torvalds committed 1 year ago

Commit d4710452 parents 7a8bdc7 39b5ef71 file · +4 −2Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/cgroup/cpuset.c+4−2
@@ -1116,9 +1116,11 @@ void cpuset_update_tasks_cpumask(struct cpuset *cs, struct cpumask *new_cpus) · 1115 unmodified lines
1116 1116
1117 if (top_cs) {1117 if (top_cs) {
1118 /*1118 /*
1119 * Percpu kthreads in top_cpuset are ignored1119 * PF_NO_SETAFFINITY tasks are ignored.
1120 * All per cpu kthreads should have PF_NO_SETAFFINITY
1121 * flag set, see kthread_set_per_cpu().
1120 */1122 */
1121 if (kthread_is_per_cpu(task))1123 if (task->flags & PF_NO_SETAFFINITY)
1122 continue;1124 continue;
1123 cpumask_andnot(new_cpus, possible_mask, subpartitions_cpus);1125 cpumask_andnot(new_cpus, possible_mask, subpartitions_cpus);
1124 } else {1126 } else {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t