rhashtable: Remove unnecessary wmb for future_tbl
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 8 Dec 2015 09:09:04 +0000 (17:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2015 03:46:32 +0000 (22:46 -0500)
commit46c749eac979c0bf280f760971367e9babe4d05f
tree60245bd86dd38b65047283899ac739af1a534e52
parentbc22ff5363b1842b0507c4eefefde7748dbc7032
rhashtable: Remove unnecessary wmb for future_tbl

The patch 9497df88ab5567daa001829051c5f87161a81ff0 ("rhashtable:
Fix reader/rehash race") added a pair of barriers.  In fact the
wmb is superfluous because every subsequent write to the old or
new hash table uses rcu_assign_pointer, which itself carriers a
full barrier prior to the assignment.

Therefore we may remove the explicit wmb.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c