idr test suite: Create anchor before launching throbber
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:46:49 +0000 (07:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:21 +0000 (11:43 +0200)
commitb1f6c6f39bd6a47edcedf2532491ba26b212ecb3
tree08d725562dd1b25ef0fe8dba5351037be6986e1b
parent9a7552daa93bf38f6975cb47f6f726d3e2b81a60
idr test suite: Create anchor before launching throbber

[ Upstream commit 094ffbd1d8eaa27ed426feb8530cb1456348b018 ]

The throbber could race with creation of the anchor entry and cause the
IDR to have zero entries in it, which would cause the test to fail.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/radix-tree/idr-test.c