OSDN Git Service

net: netlabel: Use built-in RCU list checking
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Tue, 18 Feb 2020 18:17:18 +0000 (23:47 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2020 20:43:06 +0000 (12:43 -0800)
commit8c70c3d72833a08214ff8c8df1f7d9778509888d
treedf799f8576a96c4450a4a5e0f983edaaaf98c52d
parent379349e9bc3b42b8b2f8f7a03f64a97623fff323
net: netlabel: Use built-in RCU list checking

list_for_each_entry_rcu() has built-in RCU and lock checking.

Pass cond argument to list_for_each_entry_rcu() to silence
false lockdep warning when CONFIG_PROVE_RCU_LIST is enabled
by default.

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_unlabeled.c