lkml.org 
[lkml]   [2011]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] tracepoint: add __rcu annotation
* Lai Jiangshan (laijs@cn.fujitsu.com) wrote:
> Add __rcu annotation to :
> (struct tracepoint)->funcs
>
> signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

Yep, makes sense!

Thanks,

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

> ---
> diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
> index d3e4f87..e0e400d 100644
> --- a/include/linux/tracepoint.h
> +++ b/include/linux/tracepoint.h
> @@ -32,7 +32,7 @@ struct tracepoint {
> int state; /* State. */
> void (*regfunc)(void);
> void (*unregfunc)(void);
> - struct tracepoint_func *funcs;
> + struct tracepoint_func __rcu *funcs;
> } __attribute__((aligned(32))); /*
> * Aligned on 32 bytes because it is
> * globally visible and gcc happily

--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com


\
 
 \ /
  Last update: 2011-01-05 15:05    [W:0.065 / U:2.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site