lkml.org 
[lkml]   [2013]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [RFC] seqcount: Add lockdep functionality to seqcount/seqlock structures
On Tue, Sep 10, 2013 at 10:11:56AM +0200, Peter Zijlstra wrote:
> On Mon, Sep 09, 2013 at 09:42:46PM -0700, John Stultz wrote:
> > +++ b/include/linux/lockdep.h
> > @@ -510,6 +510,21 @@ static inline void print_irqtrace_events(struct task_struct *curr)
> >
> > #ifdef CONFIG_DEBUG_LOCK_ALLOC
> > # ifdef CONFIG_PROVE_LOCKING
> > +# define seqcount_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 2, NULL, i)
> > +# define seqcount_acquire_read(l, s, t, i) lock_acquire(l, s, t, 2, 2, NULL, i)
> > +# else
> > +# define seqcount_acquire(l, s, t, i) lock_acquire(l, s, t, 0, 1, NULL, i)
> > +# define seqcount_acquire_read(l, s, t, i) lock_acquire(l, s, t, 2, 1, NULL, i)
> > +# endif
> > +# define seqcount_release(l, n, i) lock_release(l, n, i)
> > +#else
> > +# define seqcount_acquire(l, s, t, i) do { } while (0)
> > +# define seqcount_acquire_read(l, s, t, i) do { } while (0)
> > +# define seqcount_release(l, n, i) do { } while (0)
> > +#endif
>
> Please look at a recent lockdep.h, this pattern changed a little.

And when you're there, can you please remove the superfluous whitespace
before rwsem_release and lock_map_release ?


\
 
 \ /
  Last update: 2013-09-10 11:41    [W:0.881 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site