]> Git Repo - linux.git/commit
perf: Fix event->ctx locking
authorPeter Zijlstra <[email protected]>
Fri, 23 Jan 2015 11:24:14 +0000 (12:24 +0100)
committerIngo Molnar <[email protected]>
Wed, 4 Feb 2015 07:07:10 +0000 (08:07 +0100)
commitf63a8daa5812afef4f06c962351687e1ff9ccb2b
treedd488b9bda2685c213a09d3feeb9e4f8a6d9dcaa
parent652884fe0c7bd57f534c5fe68d6def0dc8c4b7ed
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) <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/core.c
This page took 0.048547 seconds and 4 git commands to generate.