]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ce0d2bc7f89decd20729e2b5ec8a78233d1f713
treeb4ce7ff013f2a4870d8cbf5f4306c04825010db0
parent8f115e7722c47a6df84dd60d055498028cf0e96f
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