rhashtable-test: retry insert operations
authorPhil Sutter <phil@nwl.cc>
Fri, 20 Nov 2015 17:17:18 +0000 (18:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 17:36:08 +0000 (12:36 -0500)
commit9e9089e5a2d788db417d4d1f836eecc2fc44e9ff
tree1df8e958d5c651c8be292903989c349d1847b5ce
parentcd5b318daf4aecd249c3f07df93700c0f749484c
rhashtable-test: retry insert operations

After adding cond_resched() calls to threadfunc(), a surprisingly high
rate of insert failures occurred probably due to table resizes getting a
better chance to run in background. To not soften up the remaining
tests, retry inserts until they either succeed or fail permanently.

Also change the non-threaded test to retry insert operations, too.

Suggested-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c