lkml.org 
[lkml]   [2020]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 13/19] vfs: Add a mount-notification facility [ver #16]
Date
Jann Horn <jannh@google.com> wrote:

> > 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

\
 
 \ /
  Last update: 2020-02-21 18:07    [W:0.130 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site