]> git.baikalelectronics.ru Git - kernel.git/commit
radix tree test suite: Register the main thread with the RCU library
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 31 Mar 2021 18:59:19 +0000 (14:59 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:41:30 +0000 (07:41 -0400)
commitcb68fad32884fd58c5dbc2d67ca920db6a67e2e2
tree9c38ae5cb23856d0efcef808ac667a41aedc14b5
parent578cbcd3f429f8f5b851bae9f8bbddc1d019213b
radix tree test suite: Register the main thread with the RCU library

Several test runners register individual worker threads with the
RCU library, but neglect to register the main thread, which can lead
to objects being freed while the main thread is in what appears to be
an RCU critical section.

Reported-by: Chris von Recklinghausen <crecklin@redhat.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
tools/testing/radix-tree/idr-test.c
tools/testing/radix-tree/multiorder.c
tools/testing/radix-tree/xarray.c