Re: [PATCH v4 1/3] kunit: make test->lock irq safe

2021-04-13 Thread Brendan Higgins
On Tue, Apr 13, 2021 at 3:07 AM wrote: > > From: Vlastimil Babka > > The upcoming SLUB kunit test will be calling kunit_find_named_resource() from > a context with disabled interrupts. That means kunit's test->lock needs to be > IRQ safe to avoid potential deadlocks and lockdep splats. > > This

[PATCH v4 1/3] kunit: make test->lock irq safe

2021-04-13 Thread glittao
From: Vlastimil Babka The upcoming SLUB kunit test will be calling kunit_find_named_resource() from a context with disabled interrupts. That means kunit's test->lock needs to be IRQ safe to avoid potential deadlocks and lockdep splats. This patch therefore changes the test->lock usage to