Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1267779 > unrolled thread
| Started by | Stephane Eranian <eranian@google.com> |
|---|---|
| First post | 2015-11-12 11:10 +0100 |
| Last post | 2015-11-12 11:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v3 0/2] perf/core: rcu fixes Stephane Eranian <eranian@google.com> - 2015-11-12 11:10 +0100
Re: [PATCH v3 0/2] perf/core: rcu fixes Peter Zijlstra <peterz@infradead.org> - 2015-11-12 11:40 +0100
| From | Stephane Eranian <eranian@google.com> |
|---|---|
| Date | 2015-11-12 11:10 +0100 |
| Subject | [PATCH v3 0/2] perf/core: rcu fixes |
| Message-ID | <qtWZk-7yp-11@gated-at.bofh.it> |
This short patch series fixes some issues with RCU locking in the generic perf layer. Patch 1 fixes cgroup switching rcu issues related to the fact that perf_cgroup_sched_out() and perf_cgroup_sched_in() were missing some rcu read lock to protect the reference to the cgroup. Consequently, we moved the rcu readlock out of perf_cgroup_switch() to avoid double calls. Patch 2 reinforces the testing for the rcu locking in perf cgorup code. Either we have to hold the rcu read lock or we must have the ctx->lock which guarantees the task cannot leave the cgroup. Thanks to Peter and Eric from their suggestions on how to fix this correctly. Stephane Eranian (2): perf/core: fix RCU problem with cgroup context switching code perf/core: robustify perf_cgroup_from_task rcu checks arch/x86/kernel/cpu/perf_event_intel_cqm.c | 2 +- include/linux/perf_event.h | 6 ++++-- kernel/events/core.c | 31 ++++++++++++++++++++---------- 3 files changed, 26 insertions(+), 13 deletions(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2015-11-12 11:40 +0100 |
| Message-ID | <qtXsm-7Iy-25@gated-at.bofh.it> |
| In reply to | #1267779 |
On Thu, Nov 12, 2015 at 11:00:02AM +0100, Stephane Eranian wrote: > > This short patch series fixes some issues with RCU locking in the generic > perf layer. > > Patch 1 fixes cgroup switching rcu issues related to the fact that > perf_cgroup_sched_out() and perf_cgroup_sched_in() were missing some > rcu read lock to protect the reference to the cgroup. Consequently, > we moved the rcu readlock out of perf_cgroup_switch() to avoid double > calls. > > Patch 2 reinforces the testing for the rcu locking in perf cgorup code. > Either we have to hold the rcu read lock or we must have the ctx->lock > which guarantees the task cannot leave the cgroup. > > Thanks to Peter and Eric from their suggestions on how to fix this correctly. > > Stephane Eranian (2): > perf/core: fix RCU problem with cgroup context switching code > perf/core: robustify perf_cgroup_from_task rcu checks Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web