aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 7c0e8da59e26..37ca0a5c226d 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -872,7 +872,7 @@ static void update_tasks_cpumask_hier(struct cpuset *root_cs, bool update_root)
872 continue; 872 continue;
873 } 873 }
874 } 874 }
875 if (!css_tryget(&cp->css)) 875 if (!css_tryget_online(&cp->css))
876 continue; 876 continue;
877 rcu_read_unlock(); 877 rcu_read_unlock();
878 878
@@ -1108,7 +1108,7 @@ static void update_tasks_nodemask_hier(struct cpuset *root_cs, bool update_root)
1108 continue; 1108 continue;
1109 } 1109 }
1110 } 1110 }
1111 if (!css_tryget(&cp->css)) 1111 if (!css_tryget_online(&cp->css))
1112 continue; 1112 continue;
1113 rcu_read_unlock(); 1113 rcu_read_unlock();
1114 1114
@@ -2153,7 +2153,7 @@ static void cpuset_hotplug_workfn(struct work_struct *work)
2153 2153
2154 rcu_read_lock(); 2154 rcu_read_lock();
2155 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) { 2155 cpuset_for_each_descendant_pre(cs, pos_css, &top_cpuset) {
2156 if (cs == &top_cpuset || !css_tryget(&cs->css)) 2156 if (cs == &top_cpuset || !css_tryget_online(&cs->css))
2157 continue; 2157 continue;
2158 rcu_read_unlock(); 2158 rcu_read_unlock();
2159 2159