]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Free bucket tables asynchronously after rehash
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 14 Mar 2015 02:57:23 +0000 (13:57 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2015 05:35:34 +0000 (01:35 -0400)
commit76bff2ee499f60150ad7747903abecb0b21f1479
tree57518695b14d3f67e66c6e25ab2878f04158bf25
parentc9870d6bc7f733314899715dbb47bd16842f8246
rhashtable: Free bucket tables asynchronously after rehash

There is in fact no need to wait for an RCU grace period in the
rehash function, since all insertions are guaranteed to go into
the new table through spin locks.

This patch uses call_rcu to free the old/rehashed table at our
leisure.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c