LSM: switch to blocking policy update notifiers
Atomic policy updaters are not very useful as they cannot usually perform the policy updates on their own. Since it seems that there is no strict need for the atomicity, switch to the blocking variant. While doing so, rename the functions accordingly. Signed-off-by: Janne Karhunen <janne.karhunen@gmail.com> Acked-by: Paul Moore <paul@paul-moore.com> Acked-by: James Morris <jamorris@linux.microsoft.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:

committed by
Mimi Zohar

parent
9e1e5d4372
commit
42df744c41
@@ -2499,7 +2499,7 @@ static int __init ib_core_init(void)
|
||||
goto err_mad;
|
||||
}
|
||||
|
||||
ret = register_lsm_notifier(&ibdev_lsm_nb);
|
||||
ret = register_blocking_lsm_notifier(&ibdev_lsm_nb);
|
||||
if (ret) {
|
||||
pr_warn("Couldn't register LSM notifier. ret %d\n", ret);
|
||||
goto err_sa;
|
||||
@@ -2518,7 +2518,7 @@ static int __init ib_core_init(void)
|
||||
return 0;
|
||||
|
||||
err_compat:
|
||||
unregister_lsm_notifier(&ibdev_lsm_nb);
|
||||
unregister_blocking_lsm_notifier(&ibdev_lsm_nb);
|
||||
err_sa:
|
||||
ib_sa_cleanup();
|
||||
err_mad:
|
||||
@@ -2544,7 +2544,7 @@ static void __exit ib_core_cleanup(void)
|
||||
nldev_exit();
|
||||
rdma_nl_unregister(RDMA_NL_LS);
|
||||
unregister_pernet_device(&rdma_dev_net_ops);
|
||||
unregister_lsm_notifier(&ibdev_lsm_nb);
|
||||
unregister_blocking_lsm_notifier(&ibdev_lsm_nb);
|
||||
ib_sa_cleanup();
|
||||
ib_mad_cleanup();
|
||||
addr_cleanup();
|
||||
|
Reference in New Issue
Block a user