]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 2 Apr 2018 10:19:49 +0000 (07:19 -0300)
commit2deac28c2886fa1f2aa633eac7b6e182484d4e4b
treea6d4dcbbf087124834fde3e1869e4861d7b65c4b
parent7ca08768addbd8b0586983e51a57fdeedd9c0e66
test_rhashtable: add test case for rhltable with duplicate objects

BugLink: http://bugs.launchpad.net/bugs/1760585
[ Upstream commit 499ac3b60f657dae82055fc81c7b01e6242ac9bc ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
lib/test_rhashtable.c