Re: getaddrinfo slowdown in 3.17.1, due to getifaddrs

From: Eric Dumazet
Date: Fri Oct 17 2014 - 17:19:31 EST


On Fri, 2014-10-17 at 12:30 -0400, David Miller wrote:

> Can I ask a serious question? What is the synchronize_net() in AF_NETLINK
> exactly needed for?

__netlink_lookup() calls rhashtable_lookup_compare()

So you really want that any object found in this lookup respects
rcu grace period before being freed.

RCU contract is pretty clear about deletions of objects.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/