diff options
author | Ariel Yin <ayin@google.com> | 2016-10-12 17:48:19 -0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-12-13 00:14:53 +1100 |
commit | 89634e6f964064a223fb81ddbce9a053a4f16686 (patch) | |
tree | 53f3897ceb95ad638fe7376d47715e3ff58cacec /kernel/rtmutex.c | |
parent | 699bf014212c71ebdb99850682947e8ad19a7499 (diff) | |
download | kernel_samsung_smdk4412-89634e6f964064a223fb81ddbce9a053a4f16686.zip kernel_samsung_smdk4412-89634e6f964064a223fb81ddbce9a053a4f16686.tar.gz kernel_samsung_smdk4412-89634e6f964064a223fb81ddbce9a053a4f16686.tar.bz2 |
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 'kernel/rtmutex.c')
0 files changed, 0 insertions, 0 deletions