diff options
author | Herbert Xu | 2015-03-23 14:50:28 +0100 |
---|---|---|
committer | David S. Miller | 2015-03-24 03:07:52 +0100 |
commit | ccd57b1bd32460d27bbb9c599e795628a3c66983 (patch) | |
tree | 320a409508ea1e83a335804bf3d1a840227cb7b7 /lib/dec_and_lock.c | |
parent | rhashtable: Allow GFP_ATOMIC bucket table allocation (diff) | |
download | kernel-qcow2-linux-ccd57b1bd32460d27bbb9c599e795628a3c66983.tar.gz kernel-qcow2-linux-ccd57b1bd32460d27bbb9c599e795628a3c66983.tar.xz kernel-qcow2-linux-ccd57b1bd32460d27bbb9c599e795628a3c66983.zip |
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 <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions