Skip to contentSkip to conversation

cgroup, netclassid: remove double cond_resched

PATCH Applied Jiri Slaby 2 participants 2 messages Apr 20, 2020 – Apr 21, 2020

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 cgroup, netclassid: remove double cond_resched

Commit 018d26fcd12a ("cgroup, netclassid: periodically release file_lock on classid") added a second cond_resched to write_classid indirectly by update_classid_task. Remove the one in write_classid.

Cc Dmitry Yakunin <[email protected]>
Cc Konstantin Khlebnikov <[email protected]>
Cc David S. Miller <[email protected]>
---
 net/core/netclassid_cgroup.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/core/netclassid_cgroup.c +1 -3
index b4c87fe31be2..41b24cd31562 100644
@@ -127,10 +127,8 @@ static int write_classid(struct cgroup_subsys_state *css, struct cftype *cft,
 	cs->classid = (u32)value;
 
 	css_task_iter_start(css, 0, &it);
-	while ((p = css_task_iter_next(&it))) {
+	while ((p = css_task_iter_next(&it)))
 		update_classid_task(p, cs->classid);
-		cond_resched();
-	}
 	css_task_iter_end(&it);
 
 	return 0;
Signature · 1 line
2.26.1
maintainer Applied
#1 lore raw

From: Jiri Slaby <[email protected]>
Date: Mon, 20 Apr 2020 09:04:24 +0200

Quoted 5 lines

Commit 018d26fcd12a ("cgroup, netclassid: periodically release file_lock on classid") added a second cond_resched to write_classid indirectly by update_classid_task. Remove the one in write_classid.

Applied, thanks Jiri.