lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 1 Oct 2009 07:47:14 GMT From: tip-bot for Xiao Guangrong <xiaoguangrong@...fujitsu.com> To: linux-tip-commits@...r.kernel.org Cc: linux-kernel@...r.kernel.org, paulus@...ba.org, hpa@...or.com, mingo@...hat.com, peterz@...radead.org, xiaoguangrong@...fujitsu.com, tglx@...utronix.de, mingo@...e.hu Subject: [tip:perf/urgent] perf_event: Clean up perf_event_init_task() Commit-ID: 27f9994c50e95f3a5a81fe4c7491a9f9cffe6ec0 Gitweb: http://git.kernel.org/tip/27f9994c50e95f3a5a81fe4c7491a9f9cffe6ec0 Author: Xiao Guangrong <xiaoguangrong@...fujitsu.com> AuthorDate: Fri, 25 Sep 2009 13:54:01 +0800 Committer: Ingo Molnar <mingo@...e.hu> CommitDate: Thu, 1 Oct 2009 09:30:44 +0200 perf_event: Clean up perf_event_init_task() While at it: we can traverse ctx->group_list to get all group leader, it should be safe since we hold ctx->mutex. Changlog v1->v2: - remove WARN_ON_ONCE() according to Peter Zijlstra's suggestion Signed-off-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com> Acked-by: Peter Zijlstra <peterz@...radead.org> Cc: Paul Mackerras <paulus@...ba.org> LKML-Reference: <4ABC5AF9.6060808@...fujitsu.com> Signed-off-by: Ingo Molnar <mingo@...e.hu> --- kernel/perf_event.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/perf_event.c b/kernel/perf_event.c index e50543d..e491fb0 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c @@ -4767,9 +4767,7 @@ int perf_event_init_task(struct task_struct *child) * We dont have to disable NMIs - we are only looking at * the list, not manipulating it: */ - list_for_each_entry_rcu(event, &parent_ctx->event_list, event_entry) { - if (event != event->group_leader) - continue; + list_for_each_entry(event, &parent_ctx->group_list, group_entry) { if (!event->attr.inherit) { inherited_all = 0; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists