]> git.itanic.dy.fi Git - linux-stable/commit
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:59 +0000 (20:17 +0100)
commit483ecebb22c16369ecb607e4bfd5f9767b56555f
tree7adb8363fedefdae7060d405d32c631da23079c8
parent7caf473f99b8c3537cc2196d3d508dd6c139048b
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