diff options
Diffstat (limited to 'kernel/cgroup_freezer.c')
-rw-r--r-- | kernel/cgroup_freezer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup_freezer.c b/kernel/cgroup_freezer.c index 345628c78b5b..0398f7e9ac81 100644 --- a/kernel/cgroup_freezer.c +++ b/kernel/cgroup_freezer.c | |||
@@ -304,7 +304,7 @@ static int freezer_read(struct seq_file *m, void *v) | |||
304 | 304 | ||
305 | /* update states bottom-up */ | 305 | /* update states bottom-up */ |
306 | css_for_each_descendant_post(pos, css) { | 306 | css_for_each_descendant_post(pos, css) { |
307 | if (!css_tryget(pos)) | 307 | if (!css_tryget_online(pos)) |
308 | continue; | 308 | continue; |
309 | rcu_read_unlock(); | 309 | rcu_read_unlock(); |
310 | 310 | ||
@@ -404,7 +404,7 @@ static void freezer_change_state(struct freezer *freezer, bool freeze) | |||
404 | struct freezer *pos_f = css_freezer(pos); | 404 | struct freezer *pos_f = css_freezer(pos); |
405 | struct freezer *parent = parent_freezer(pos_f); | 405 | struct freezer *parent = parent_freezer(pos_f); |
406 | 406 | ||
407 | if (!css_tryget(pos)) | 407 | if (!css_tryget_online(pos)) |
408 | continue; | 408 | continue; |
409 | rcu_read_unlock(); | 409 | rcu_read_unlock(); |
410 | 410 | ||