]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:50:19 +0000 (07:50 -0400)
commit871586cab2808d98dd3fc2ad5211a4a6aaaf3566
treee6b15a6235168d002fe515f9f5dd1754cdd2b149
parent200f0bd7f4c82f357207fb6e20b9a5c975b69132
idr test suite: Create anchor before launching throbber

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>
tools/testing/radix-tree/idr-test.c