On 7/13/2012 3:58 AM, David Miller wrote:
From: Shlomo Pongratz <[email protected]>
Date: Thu, 12 Jul 2012 20:13:28 +0000
The RCU and reference count protect the individual entries in the hash. The R/W
lock protects the hash table itself. e.g. deleting the hash table itself, or in
the future re-sizing it.
You don't need a R/W lock for that, we have RCU hash tables that get resized
dynamically and the lookup still only needs pure RCU protection.
OK, we see now that __ipv4_neigh_lookup for example uses pure RCU
protection, will modify the patch to apply the same practice.
Or.
--
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