Thread (31 messages) 31 messages, 4 authors, 2018-07-02

Re: [PATCH v10 3/9] cpuset: Simulate auto-off of sched.domain_root at cgroup removal

From: Peter Zijlstra <peterz@infradead.org>
Date: 2018-06-20 14:12:04
Also in: cgroups, lkml

On Mon, Jun 18, 2018 at 12:14:02PM +0800, Waiman Long wrote:
quoted hunk ↗ jump to hunk
@@ -1058,7 +1060,12 @@ static int update_reserved_cpumask(struct cpuset *cpuset,
 	 * Check if any CPUs in addmask or delmask are in the effective_cpus
 	 * of a sibling cpuset. The implied cpu_exclusive of a scheduling
 	 * domain root will ensure there are no overlap in cpus_allowed.
+	 *
+	 * This check is skipped if the cpuset is dying.
Comments that state what the code does are mostly useless; please
explain _why_ if anything.
 	 */
+	if (dying)
+		goto updated_reserved_cpus;
+
 	rcu_read_lock();
 	cpuset_for_each_child(sibling, pos_css, parent) {
 		if ((sibling == cpuset) || !(sibling->css.flags & CSS_ONLINE))
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help