[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200420070424.5694-1-jslaby@suse.cz>
Date: Mon, 20 Apr 2020 09:04:24 +0200
From: Jiri Slaby <jslaby@...e.cz>
To: davem@...emloft.net
Cc: kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Jiri Slaby <jslaby@...e.cz>,
Dmitry Yakunin <zeil@...dex-team.ru>,
Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
Subject: [PATCH] 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 <jslaby@...e.cz>
Cc: Dmitry Yakunin <zeil@...dex-team.ru>
Cc: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
Cc: David S. Miller <davem@...emloft.net>
---
net/core/netclassid_cgroup.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/core/netclassid_cgroup.c b/net/core/netclassid_cgroup.c
index b4c87fe31be2..41b24cd31562 100644
--- a/net/core/netclassid_cgroup.c
+++ b/net/core/netclassid_cgroup.c
@@ -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;
--
2.26.1
Powered by blists - more mailing lists