Re: [PATCH 1/2] jump_labels: API for flushing deferred jump label updates

2016-12-22 Thread Paolo Bonzini
On 19/12/2016 15:58, Peter Zijlstra wrote: > On Fri, Dec 16, 2016 at 02:30:35PM -0800, David Matlack wrote: >> Modules that use static_key_deferred need a way to synchronize with >> any delayed work that is still pending when the module is unloaded. >> Introduce static_key_deferred_flush() which

Re: [PATCH 1/2] jump_labels: API for flushing deferred jump label updates

2016-12-19 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 02:30:35PM -0800, David Matlack wrote: > Modules that use static_key_deferred need a way to synchronize with > any delayed work that is still pending when the module is unloaded. > Introduce static_key_deferred_flush() which flushes any pending > jump label updates. Makes s

[PATCH 1/2] jump_labels: API for flushing deferred jump label updates

2016-12-16 Thread David Matlack
Modules that use static_key_deferred need a way to synchronize with any delayed work that is still pending when the module is unloaded. Introduce static_key_deferred_flush() which flushes any pending jump label updates. Signed-off-by: David Matlack --- include/linux/jump_label_ratelimit.h | 5 ++