rhashtable: Fix RCU dereference annotation in rht_bucket_nested
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 25 Feb 2017 14:39:50 +0000 (22:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Feb 2017 02:33:43 +0000 (21:33 -0500)
commitc4d2603dac3a555e4bb324daf5cb5cdb5694eedd
treeaa471c625bdf28475ad8d5b6c48520ef547dac7d
parentca435407ba6655a0d63230818ffe7006d967dfe5
rhashtable: Fix RCU dereference annotation in rht_bucket_nested

The current annotation is wrong as it says that we're only called
under spinlock.  In fact it should be marked as under either
spinlock or RCU read lock.

Fixes: da20420f83ea ("rhashtable: Add nested tables")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c