lkml.org 
[lkml]   [2013]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/13] cpuset: make CPU / memory hotplug propagation asynchronous
> +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);
> }



\
 
 \ /
  Last update: 2013-01-06 10:01    [W:0.148 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site