Thread (67 messages) 67 messages, 9 authors, 2020-02-21

Re: [PATCH 13/19] vfs: Add a mount-notification facility [ver #16]

From: David Howells <dhowells@redhat.com>
Date: 2020-02-21 17:06:32
Also in: linux-fsdevel, lkml

Jann Horn [off-list ref] wrote:
quoted
What's the best way to write a lockdep assertion?

        BUG_ON(!lockdep_is_held(lock));
lockdep_assert_held(lock) is the normal way, I think - that will
WARN() if lockdep is enabled and the lock is not held.
Okay.  But what's the best way with a seqlock_t?  It has two dep maps in it.
Do I just ignore the one attached to the spinlock?

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help