aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohn Dias <joaodias@google.com>2016-10-10 17:11:18 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:44 +0200
commita0e40f4a2698fef4497265757f6c83e382365b60 (patch)
tree594501e3fcbd5f010f877ca2e821e08862b116fc /drivers
parent0fa18f53a9d4b875c1033507b08f8677caaad7ef (diff)
BACKPORT: perf: Fix event->ctx locking
There have been a few reported issues wrt. the lack of locking around changing event->ctx. This patch tries to address those. It avoids the whole rwsem thing; and while it appears to work, please give it some thought in review. What I did fail at is sensible runtime checks on the use of event->ctx, the RCU use makes it very hard. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20150123125834.209535886@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org> (cherry picked from commit f63a8daa5812afef4f06c962351687e1ff9ccb2b) Bug: 30955111 Bug: 31095224 Change-Id: I5bab713034e960fad467637e98e914440de5666d
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions