Re: [PATCH v4 1/4] locking: Add rwsem_assert_held() and rwsem_assert_held_write()
From: Peter Zijlstra
Date: Mon Nov 20 2023 - 06:52:52 EST
On Fri, Nov 17, 2023 at 02:51:39PM +0000, Matthew Wilcox (Oracle) wrote:
> Modelled after lockdep_assert_held() and lockdep_assert_held_write(),
> but are always active, even when lockdep is disabled. Of course, they
> don't test that _this_ thread is the owner, but it's sufficient to catch
> many bugs and doesn't incur the same performance penalty as lockdep.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>