diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index adb820e98f24..f9ee03dadc38 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5552,7 +5552,7 @@ static void css_killed_work_fn(struct work_struct *work)
 
 	do {
 		offline_css(css);
-		css_put(css);
+		css_put_many(css, 2);
 		/* @css can't go away while we're holding cgroup_mutex */
 		css = css->parent;
 	} while (css && atomic_dec_and_test(&css->online_cnt));
@@ -5600,7 +5600,7 @@ static void kill_css(struct cgroup_subsys_state *css)
 	 * Killing would put the base ref, but we need to keep it alive
 	 * until after ->css_offline().
 	 */
-	css_get(css);
+	css_get_many(css, 2);
 
 	/*
 	 * cgroup core guarantees that, by the time ->css_offline() is