cgroup, netclassid: remove double cond_resched
Subsystems (2)
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.
Signed-off-by Jiri Slaby <[email protected]>
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
@@ -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
From: Jiri Slaby <[email protected]>
Date: Mon, 20 Apr 2020 09:04:24 +0200
Quoted 5 lines
Commit
018d26fcd12a("cgroup, netclassid: periodically releasefile_lockon classid") added a secondcond_reschedtowrite_classidindirectly byupdate_classid_task. Remove the one inwrite_classid.Signed-off-by Jiri Slaby <[email protected]>
Applied, thanks Jiri.