Re: [PATCH 10/13] cpuset: make CPU / memory hotplug propagation asynchronous

From: Li Zefan
Date: Sun Jan 06 2013 - 03:29:47 EST


> +static void schedule_cpuset_propagate_hotplug(struct cpuset *cs)
> +{
> + /*
> + * Pin @cs. The refcnt will be released when the work item
> + * finishes executing.
> + */
> + if (!css_tryget(&cs->css))
> + return;
> +
> + /*
> + * Queue @cs->empty_cpuset_work. If already pending, lose the css

cs->hotplug_work

> + * ref. cpuset_propagate_hotplug_wq is ordered and propagation
> + * will happen in the order this function is called.
> + */
> + if (!queue_work(cpuset_propagate_hotplug_wq, &cs->hotplug_work))
> + css_put(&cs->css);
> }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/