diff options
author | John Stultz <[email protected]> | 2013-10-07 15:51:59 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-11-06 12:40:26 +0100 |
commit | 1ca7d67cf5d5a2aef26a8d9afd789006fa098347 (patch) | |
tree | 8f4f7d1f189d7a08983ab5ef522330f08f337459 /tools/perf/util/trace-event-scripting.c | |
parent | 827da44c61419f29ae3be198c342e2147f1a10cb (diff) |
seqcount: Add lockdep functionality to seqcount/seqlock structures
Currently seqlocks and seqcounts don't support lockdep.
After running across a seqcount related deadlock in the timekeeping
code, I used a less-refined and more focused variant of this patch
to narrow down the cause of the issue.
This is a first-pass attempt to properly enable lockdep functionality
on seqlocks and seqcounts.
Since seqcounts are used in the vdso gettimeofday code, I've provided
non-lockdep accessors for those needs.
I've also handled one case where there were nested seqlock writers
and there may be more edge cases.
Comments and feedback would be appreciated!
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions