]> 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)
commitd0cf68397f8fc0835777a923e883c5521c36e713
treeb4ce7ff013f2a4870d8cbf5f4306c04825010db0
parent873b32981510ccba9b83035a2f908cc70403d0d0
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