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

2013-01-07 Thread Tejun Heo
On Sun, Jan 06, 2013 at 04:29:09PM +0800, Li Zefan wrote: > > +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(>css)) > > +

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

2013-01-07 Thread Tejun Heo
On Sun, Jan 06, 2013 at 04:29:09PM +0800, Li Zefan wrote: +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;

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

2013-01-06 Thread Li Zefan
> +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(>css)) > + return; > + > + /* > + * Queue

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

2013-01-06 Thread Li Zefan
+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.

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

2013-01-03 Thread Tejun Heo
cpuset_hotplug_workfn() has been invoking cpuset_propagate_hotplug() directly to propagate hotplug updates to !root cpusets; however, this has the following problems. * cpuset locking is scheduled to be decoupled from cgroup_mutex, cgroup_mutex will be unexported, and cgroup_attach_task() will

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

2013-01-03 Thread Tejun Heo
cpuset_hotplug_workfn() has been invoking cpuset_propagate_hotplug() directly to propagate hotplug updates to !root cpusets; however, this has the following problems. * cpuset locking is scheduled to be decoupled from cgroup_mutex, cgroup_mutex will be unexported, and cgroup_attach_task() will

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

2012-11-28 Thread Tejun Heo
cpuset_hotplug_workfn() has been invoking cpuset_propagate_hotplug() directly to propagate hotplug updates to !root cpusets; however, this has the following problems. * cpuset locking is scheduled to be decoupled from cgroup_mutex, cgroup_mutex will be unexported, and cgroup_attach_task() will

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

2012-11-28 Thread Tejun Heo
cpuset_hotplug_workfn() has been invoking cpuset_propagate_hotplug() directly to propagate hotplug updates to !root cpusets; however, this has the following problems. * cpuset locking is scheduled to be decoupled from cgroup_mutex, cgroup_mutex will be unexported, and cgroup_attach_task() will