File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -731,13 +731,13 @@ EXPORT_SYMBOL_GPL(crypto_spawn_tfm2);
731
731
732
732
int crypto_register_notifier (struct notifier_block * nb )
733
733
{
734
- return blocking_notifier_chain_register (& crypto_chain , nb );
734
+ return srcu_notifier_chain_register (& crypto_chain , nb );
735
735
}
736
736
EXPORT_SYMBOL_GPL (crypto_register_notifier );
737
737
738
738
int crypto_unregister_notifier (struct notifier_block * nb )
739
739
{
740
- return blocking_notifier_chain_unregister (& crypto_chain , nb );
740
+ return srcu_notifier_chain_unregister (& crypto_chain , nb );
741
741
}
742
742
EXPORT_SYMBOL_GPL (crypto_unregister_notifier );
743
743
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ EXPORT_SYMBOL_GPL(crypto_alg_list);
31
31
DECLARE_RWSEM (crypto_alg_sem );
32
32
EXPORT_SYMBOL_GPL (crypto_alg_sem );
33
33
34
- BLOCKING_NOTIFIER_HEAD (crypto_chain );
34
+ SRCU_NOTIFIER_HEAD (crypto_chain );
35
35
EXPORT_SYMBOL_GPL (crypto_chain );
36
36
37
37
static struct crypto_alg * crypto_larval_wait (struct crypto_alg * alg );
@@ -236,10 +236,10 @@ int crypto_probing_notify(unsigned long val, void *v)
236
236
{
237
237
int ok ;
238
238
239
- ok = blocking_notifier_call_chain (& crypto_chain , val , v );
239
+ ok = srcu_notifier_call_chain (& crypto_chain , val , v );
240
240
if (ok == NOTIFY_DONE ) {
241
241
request_module ("cryptomgr" );
242
- ok = blocking_notifier_call_chain (& crypto_chain , val , v );
242
+ ok = srcu_notifier_call_chain (& crypto_chain , val , v );
243
243
}
244
244
245
245
return ok ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct crypto_larval {
47
47
48
48
extern struct list_head crypto_alg_list ;
49
49
extern struct rw_semaphore crypto_alg_sem ;
50
- extern struct blocking_notifier_head crypto_chain ;
50
+ extern struct srcu_notifier_head crypto_chain ;
51
51
52
52
#ifdef CONFIG_PROC_FS
53
53
void __init crypto_init_proc (void );
@@ -146,7 +146,7 @@ static inline int crypto_is_moribund(struct crypto_alg *alg)
146
146
147
147
static inline void crypto_notify (unsigned long val , void * v )
148
148
{
149
- blocking_notifier_call_chain (& crypto_chain , val , v );
149
+ srcu_notifier_call_chain (& crypto_chain , val , v );
150
150
}
151
151
152
152
#endif /* _CRYPTO_INTERNAL_H */
You can’t perform that action at this time.
0 commit comments