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)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jan 2017 13:33:16 +0000 (14:33 +0100)
commitb6416e61012429e0277bd15a229222fd17afc1c1
tree41e04c2694020c223660ddcaf48dec610134aa3a
parenta121103c922847ba5010819a3f250f1f7fc84ab8
jump_labels: API for flushing deferred jump label updates

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>
Cc: stable@vger.kernel.org
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/jump_label_ratelimit.h
kernel/jump_label.c