diff options
| author | Herbert Xu <[email protected]> | 2015-03-24 00:50:28 +1100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-23 22:07:52 -0400 |
| commit | ccd57b1bd32460d27bbb9c599e795628a3c66983 (patch) | |
| tree | 320a409508ea1e83a335804bf3d1a840227cb7b7 /tools/perf/scripts/python/futex-contention.py | |
| parent | b9ecfdaa1090b5988422eaf5348ea1954d2d7219 (diff) | |
rhashtable: Add immediate rehash during insertion
This patch reintroduces immediate rehash during insertion. If
we find during insertion that the table is full or the chain
length exceeds a set limit (currently 16 but may be disabled
with insecure_elasticity) then we will force an immediate rehash.
The rehash will contain an expansion if the table utilisation
exceeds 75%.
If this rehash fails then the insertion will fail. Otherwise the
insertion will be reattempted in the new hash table.
Signed-off-by: Herbert Xu <[email protected]>
Acked-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions