jump_label: Add RELEASE barrier after text changes
authorPeter Zijlstra <peterz@infradead.org>
Tue, 1 Aug 2017 21:58:50 +0000 (23:58 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 10:28:57 +0000 (12:28 +0200)
commitd0646a6f5533226ceb7620c20717286d3a372794
tree2d9b9aa221931072cb170625404c999a11bb7e23
parentbe040bea9085a9c2b1700c9e60888777baeb96d5
jump_label: Add RELEASE barrier after text changes

In the unlikely case text modification does not fully order things,
add some extra ordering of our own to ensure we only enabled the fast
path after all text is visible.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/jump_label.c