Stephen Hemminger a écrit :
> On Fri, 20 Nov 2009 06:28:00 +0100
> Eric Dumazet <[email protected]> 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 linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to