ipv4: Add lockdep condition to fix for_each_entry()
This commit applies the consolidated list_for_each_entry_rcu() support for lockdep conditions. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>alistair/sunxi64-5.4-dsi
parent
fbab8d6735
commit
7fd69b0ba4
|
@ -124,7 +124,8 @@ struct fib_table *fib_get_table(struct net *net, u32 id)
|
||||||
h = id & (FIB_TABLE_HASHSZ - 1);
|
h = id & (FIB_TABLE_HASHSZ - 1);
|
||||||
|
|
||||||
head = &net->ipv4.fib_table_hash[h];
|
head = &net->ipv4.fib_table_hash[h];
|
||||||
hlist_for_each_entry_rcu(tb, head, tb_hlist) {
|
hlist_for_each_entry_rcu(tb, head, tb_hlist,
|
||||||
|
lockdep_rtnl_is_held()) {
|
||||||
if (tb->tb_id == id)
|
if (tb->tb_id == id)
|
||||||
return tb;
|
return tb;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue