netlink: Use rhashtable walk interface in diag dump
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2016 08:21:37 +0000 (16:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 21:40:25 +0000 (14:40 -0700)
commitad202074320cd75b31b8cdb58cca0d4ef6aaea8a
tree2a64a15410e84838e189a8324e0a0b3ae6f5bda9
parent39ec406d122be703ee51cb2754fe18b1f7037fa0
netlink: Use rhashtable walk interface in diag dump

This patch converts the diag dumping code to use the rhashtable
walk code instead of going through rhashtable by hand.  The lock
nl_table_lock is now only taken while we process the multicast
list as it's not needed for the rhashtable walk.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/diag.c