From: Peter Zijlstra Date: Fri, 23 Jan 2015 11:24:14 +0000 (+0100) Subject: perf: Fix event->ctx locking X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~164^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63a8daa5812;p=pandora-kernel.git 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) Cc: Paul E. McKenney Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20150123125834.209535886@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed