[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111123164431.GG25780@google.com>
Date: Wed, 23 Nov 2011 08:44:31 -0800
From: Tejun Heo <tj@...nel.org>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>, Jiri Olsa <jolsa@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] trace_events_filter: use rcu_assign_pointer() when
setting ftrace_event_call->filter
Hello,
On Wed, Nov 23, 2011 at 05:40:17PM +0100, Eric Dumazet wrote:
> > - call->filter = NULL;
> > + rcu_assign_pointer(call->filter, NULL);
>
> Its a minor point, but setting a pointer to NULL certainly doesnt need a
> smp_wmb() barrier, so you can use RCU_INIT_POINTER(call->filter, NULL);
Yeap, we don't need it for NULL. Did that anyway for consistency /
documentation. Didn't know we had a macro for that. Neat. Updating
the patch....
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists