summaryrefslogtreecommitdiffstats
path: root/include/linux/rhashtable.h
diff options
context:
space:
mode:
authorHerbert Xu2017-02-11 12:26:46 +0100
committerDavid S. Miller2017-02-17 18:28:35 +0100
commit40f9f439706073b4b0a654b3b99e18296b7990b3 (patch)
treebaa437731befae16bef34595d72e2b64c2e4a97b /include/linux/rhashtable.h
parentgfs2: Use rhashtable walk interface in glock_hash_walk (diff)
downloadkernel-qcow2-linux-40f9f439706073b4b0a654b3b99e18296b7990b3.tar.gz
kernel-qcow2-linux-40f9f439706073b4b0a654b3b99e18296b7990b3.tar.xz
kernel-qcow2-linux-40f9f439706073b4b0a654b3b99e18296b7990b3.zip
tipc: Fix tipc_sk_reinit race conditions
There are two problems with the function tipc_sk_reinit. Firstly it's doing a manual walk over an rhashtable. This is broken as an rhashtable can be resized and if you manually walk over it during a resize then you may miss entries. Secondly it's missing memory barriers as previously the code used spinlocks which provide the barriers implicitly. This patch fixes both problems. Fixes: 07f6c4bc048a ("tipc: convert tipc reference table to...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rhashtable.h')
0 files changed, 0 insertions, 0 deletions