diff options
| author | David S. Miller <davem@davemloft.net> | 2014-11-13 15:13:13 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-11-13 15:13:13 -0500 |
| commit | 9cf5476bfda3c2f1d5712d7bf09b3dad91fc2f2d (patch) | |
| tree | 9e5d9d20cf30672d2db081a0de8604ad47680e49 /include/linux/rhashtable.h | |
| parent | 9488e1e5b319751c71eebfd49027bf9e2377f38c (diff) | |
| parent | 7b4ce2353467fdab6e003be7a3129fb09b09deac (diff) | |
Merge branch 'rhash_prove_locking'
Herbert Xu says:
====================
rhashtable: Allow local locks to be used and tested
This series moves mutex_is_held entirely under PROVE_LOCKING so
there is zero foot print when we're not debugging. More importantly
it adds a parrent argument to mutex_is_held so that we can test
local locks rather than global ones (e.g., per-namespace locks).
====================
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rhashtable.h')
| -rw-r--r-- | include/linux/rhashtable.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index fb298e9d6d3a..473e26bdb91d 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h | |||
| @@ -65,7 +65,10 @@ struct rhashtable_params { | |||
| 65 | size_t new_size); | 65 | size_t new_size); |
| 66 | bool (*shrink_decision)(const struct rhashtable *ht, | 66 | bool (*shrink_decision)(const struct rhashtable *ht, |
| 67 | size_t new_size); | 67 | size_t new_size); |
| 68 | int (*mutex_is_held)(void); | 68 | #ifdef CONFIG_PROVE_LOCKING |
| 69 | int (*mutex_is_held)(void *parent); | ||
| 70 | void *parent; | ||
| 71 | #endif | ||
| 69 | }; | 72 | }; |
| 70 | 73 | ||
| 71 | /** | 74 | /** |
