]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Convert bucket iterators to take table and index
authorThomas Graf <tgraf@suug.ch>
Fri, 2 Jan 2015 22:00:16 +0000 (23:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Jan 2015 19:32:56 +0000 (14:32 -0500)
commit125840f4182d29031fa1cec8bd257fadc6045958
treeee25a48f8ab11d06c062480c89ba1e96c8113e57
parentb860c892417054535b96255c255719a2e5ac3ad1
rhashtable: Convert bucket iterators to take table and index

This patch is in preparation to introduce per bucket spinlocks. It
extends all iterator macros to take the bucket table and bucket
index. It also introduces a new rht_dereference_bucket() to
handle protected accesses to buckets.

It introduces a barrier() to the RCU iterators to the prevent
the compiler from caching the first element.

The lockdep verifier is introduced as stub which always succeeds
and properly implement in the next patch when the locks are
introduced.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c
net/netfilter/nft_hash.c
net/netlink/af_netlink.c
net/netlink/diag.c