[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B062C92.4000001@gmail.com>
Date: Fri, 20 Nov 2009 06:43:46 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: Sean Hefty <sean.hefty@...el.com>,
"'Roland Dreier'" <rdreier@...co.com>,
"David S. Miller" <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>,
Roland Dreier <rolandd@...co.com>,
Hal Rosenstock <hal.rosenstock@...il.com>,
linux-rdma <linux-rdma@...r.kernel.org>
Subject: Re: [PATCH] RDMA/addr: Use appropriate locking with for_each_netdev()
Stephen Hemminger a écrit :
> On Fri, 20 Nov 2009 06:28:00 +0100
> Eric Dumazet <eric.dumazet@...il.com> wrote:
>
>> + read_lock(&dev_base_lock);
>> for_each_netdev(&init_net, dev) {
>> if (ipv6_chk_addr(&init_net,
>> &((struct sockaddr_in6 *) addr)->sin6_addr,
>> @@ -139,6 +140,7 @@ int rdma_translate_ip(struct sockaddr *addr, struct rdma_dev_addr *dev_addr)
>> break;
>> }
>> }
>> + read_unlock(&dev_base_lock);
>
> what about for_each_netdev_rcu() here instead...
>
Yes, in 2.6.33 :)
For 2.6.32, we need this patch
Thanks
--
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