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))
> > +
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;
> +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
+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.
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
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
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
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
8 matches
Mail list logo