jump_labels: API for flushing deferred jump label updates
authorDavid Matlack <dmatlack@google.com>
Fri, 16 Dec 2016 22:30:35 +0000 (14:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:17:19 +0000 (20:17 +0100)
commit3d27cd4b25272943300d125b20d315fd96ae0794
treef2c4d4c4e3cb7bae0143a748a1ca546dc9de3c76
parent34a55c9d4a2dc04b3e8b78e3d242c809cf5f729e
jump_labels: API for flushing deferred jump label updates

commit b6416e61012429e0277bd15a229222fd17afc1c1 upstream.

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 <dmatlack@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/jump_label_ratelimit.h
kernel/jump_label.c