Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278333
b: refs/heads/master
c: 86b1309
h: refs/heads/master
i:
  278331: 01f1fd7
v: v3
  • Loading branch information
Pravin B Shelar authored and Jesse Gross committed Dec 3, 2011
1 parent 6610084 commit 466cb7d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 263ba61d3b19508dfb003c215ec5d23f882b4f87
refs/heads/master: 86b1309c7e411b7c25dc0dc7a092582a4d291044
3 changes: 3 additions & 0 deletions trunk/include/linux/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ enum {
/* All generic netlink requests are serialized by a global lock. */
extern void genl_lock(void);
extern void genl_unlock(void);
#ifdef CONFIG_PROVE_LOCKING
extern int lockdep_genl_is_held(void);
#endif

#endif /* __KERNEL__ */

Expand Down
8 changes: 8 additions & 0 deletions trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 466cb7d

Please sign in to comment.