diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2011-03-16 19:05:26 -0400 |
---|---|---|
committer | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2011-03-16 19:05:26 -0400 |
commit | 45e2e1df5796ade73f13975a41e6588fac612cb6 (patch) | |
tree | f667e4c500dd9af13815fd49726cfb5942270eb4 /kernel | |
parent | c4425d7a4cc1e92716786c2408d5a03110e3266a (diff) |
marker-fix-rcu
markers call_rcu usage: initialize rcu_head structures
Initialize rcu_head structures before passing them to call_rcu() to eliminate
false positives in DEBUG_RCU_HEAD.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
CC: mingo@elte.hu
CC: akpm@linux-foundation.org
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/marker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/marker.c b/kernel/marker.c index 0b009a96998..9885cea5b49 100644 --- a/kernel/marker.c +++ b/kernel/marker.c @@ -451,6 +451,7 @@ static struct marker_entry *add_marker(const char *channel, const char *name, e->format_allocated = 0; e->refcount = 0; e->rcu_pending = 0; + INIT_RCU_HEAD(&e->rcu); hlist_add_head(&e->hlist, head); return e; } |