mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
genetlink: Add lockdep_genl_is_held().
Open vSwitch uses genl_mutex locking to protect datapath data-structures like flow-table, flow-actions. Following patch adds lockdep_genl_is_held() which is used for rcu annotation to prove locking. Signed-off-by: Pravin B Shelar <[email protected]> Signed-off-by: Jesse Gross <[email protected]>
This commit is contained in:
parent
263ba61d3b
commit
86b1309c7e
2 changed files with 11 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ void genl_unlock(void)
|
|||
}
|
||||
EXPORT_SYMBOL(genl_unlock);
|
||||
|
||||
#ifdef CONFIG_PROVE_LOCKING
|
||||
int lockdep_genl_is_held(void)
|
||||
{
|
||||
return lockdep_is_held(&genl_mutex);
|
||||
}
|
||||
EXPORT_SYMBOL(lockdep_genl_is_held);
|
||||
#endif
|
||||
|
||||
#define GENL_FAM_TAB_SIZE 16
|
||||
#define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue