]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Kill harmless RCU warning in rhashtable_walk_init
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 19 Dec 2015 02:45:28 +0000 (10:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2015 04:44:18 +0000 (23:44 -0500)
commit88be20c30f6f7419e9a71cefccc96e8777b14c62
treee0a36b2c0879b531ccd9f0e8707e59afbc474f7b
parentcd14240cc6bae9b2a40b89576e7fb5ae954d107c
rhashtable: Kill harmless RCU warning in rhashtable_walk_init

The commit 9f49595dd0574e4f1af22a65ab9047a0c7d56bbc ("rhashtable:
Fix walker list corruption") causes a suspicious RCU usage warning
because we no longer hold ht->mutex when we dereference ht->tbl.

However, this is a false positive because we now hold ht->lock
which also guarantees that ht->tbl won't disppear from under us.

This patch kills the warning by using rcu_dereference_protected.

Reported-by: kernel test robot <ying.huang@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c