[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1360830205.3279.1.camel@cr0>
Date: Thu, 14 Feb 2013 16:23:25 +0800
From: Cong Wang <amwang@...hat.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org, Vlad Yasevich <vyasevic@...hat.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [Patch net-next] bridge: add some missing __rcu marks
On Wed, 2013-02-13 at 22:39 -0800, Stephen Hemminger wrote:
> On Thu, 14 Feb 2013 14:12:30 +0800
> Cong Wang <amwang@...hat.com> wrote:
> > #ifdef CONFIG_NET_POLL_CONTROLLER
> > -static inline struct netpoll_info *br_netpoll_info(struct net_bridge *br)
> > +static inline struct netpoll_info __rcu *br_netpoll_info(struct net_bridge *br)
> > {
> > return br->dev->npinfo;
> > }
>
>
> This doesn't seem right since there is no rcu_dereference() here.
But we don't dereference ->npinfo here, we only check if it is NULL.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists