jump_label: Add RELEASE barrier after text changes
authorPeter Zijlstra <[email protected]>
Tue, 1 Aug 2017 21:58:50 +0000 (23:58 +0200)
committerIngo Molnar <[email protected]>
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) <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/jump_label.c