test_rhashtable: add test case for rhltable with duplicate objects
authorPaul Blakey <paulb@mellanox.com>
Sun, 4 Mar 2018 15:29:49 +0000 (17:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 15:44:03 +0000 (10:44 -0500)
commit499ac3b60f657dae82055fc81c7b01e6242ac9bc
treeb4ce7ff013f2a4870d8cbf5f4306c04825010db0
parentd3dcf8eb615537526bd42ff27a081d46d337816e
test_rhashtable: add test case for rhltable with duplicate objects

Tries to insert duplicates in the middle of bucket's chain:
bucket 1:  [[val 21 (tid=1)]] -> [[ val 1 (tid=2),  val 1 (tid=0) ]]

Reuses tid to distinguish the elements insertion order.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c