notifier: Add atomic/blocking_notifier_chain_register_unique_prio()
authorDmitry Osipenko <digetx@gmail.com>
Sun, 30 Jan 2022 23:36:59 +0000 (02:36 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:50:01 +0000 (10:50 -0700)
commit543a739f5c6752c9e12ab073218b869c59b4c948
treec6127655755fb63d920e18bb44b4e471f450dc4b
parent98484b6810879de1999eb9b1d1a3b380f91f129f
notifier: Add atomic/blocking_notifier_chain_register_unique_prio()

Add variant of atomic/blocking_notifier_chain_register() functions that
doesn't allow to register notifier using a duplicated priority. The -EBUSY
error code is returned in this case by the new API functions.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
include/linux/notifier.h
kernel/notifier.c