From: Herbert Xu Date: Mon, 23 Mar 2015 13:50:28 +0000 (+1100) Subject: rhashtable: Add immediate rehash during insertion X-Git-Tag: omap-for-v4.2/o2_dc~131^2~163^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccd57b1bd32460d27bbb9c599e795628a3c66983;p=pandora-kernel.git 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 Acked-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed