Revision 9107c89e269d2738019861bb518e3d59bef01781 authored by Peter Zijlstra on 24 February 2016, 17:45:45 UTC, committed by Ingo Molnar on 25 February 2016, 07:42:34 UTC
perf_install_in_context() relies upon the context switch hooks to have scheduled in events when the IPI misses its target -- after all, if the task has moved from the CPU (or wasn't running at all), it will have to context switch to run elsewhere. This however doesn't appear to be happening. It is possible for the IPI to not happen (task wasn't running) only to later observe the task running with an inactive context. The only possible explanation is that the context switch hooks are not called. Therefore put in a sync_sched() after toggling the jump_label to guarantee all CPUs will have them enabled before we install an event. A simple if (0->1) sync_sched() will not in fact work, because any further increment can race and complete before the sync_sched(). Therefore we must jump through some hoops. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dvyukov@google.com Cc: eranian@google.com Cc: oleg@redhat.com Cc: panand@redhat.com Cc: sasha.levin@oracle.com Cc: vince@deater.net Link: http://lkml.kernel.org/r/20160224174947.980211985@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a69b0ca
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 699 bytes |
Makefile | -rw-r--r-- | 248 bytes |
balloc.c | -rw-r--r-- | 19.2 KB |
dir.c | -rw-r--r-- | 4.9 KB |
directory.c | -rw-r--r-- | 5.7 KB |
ecma_167.h | -rw-r--r-- | 22.0 KB |
file.c | -rw-r--r-- | 6.5 KB |
ialloc.c | -rw-r--r-- | 3.3 KB |
inode.c | -rw-r--r-- | 66.0 KB |
lowlevel.c | -rw-r--r-- | 1.5 KB |
misc.c | -rw-r--r-- | 7.7 KB |
namei.c | -rw-r--r-- | 34.3 KB |
osta_udf.h | -rw-r--r-- | 8.2 KB |
partition.c | -rw-r--r-- | 8.6 KB |
super.c | -rw-r--r-- | 65.7 KB |
symlink.c | -rw-r--r-- | 3.3 KB |
truncate.c | -rw-r--r-- | 7.9 KB |
udf_i.h | -rw-r--r-- | 1.7 KB |
udf_sb.h | -rw-r--r-- | 4.3 KB |
udfdecl.h | -rw-r--r-- | 8.5 KB |
udfend.h | -rw-r--r-- | 1.6 KB |
udftime.c | -rw-r--r-- | 5.8 KB |
unicode.c | -rw-r--r-- | 11.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...