]> www.infradead.org Git - users/willy/xarray.git/commit
net: kcm: kcmproc.c: Fix RCU list suspicious usage warning
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Mon, 16 Mar 2020 17:13:52 +0000 (22:43 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2020 00:14:02 +0000 (17:14 -0700)
commit1963507e6233ceda2afeb4b9e8e1f17d59855959
tree33003a57b7d5051205b000cc03970678a3b1b8c7
parent10ee4b87f5f94c8e6dce4be95f5e56c445d45dbf
net: kcm: kcmproc.c: Fix RCU list suspicious usage warning

This path fixes the suspicious RCU usage warning reported by
kernel test robot.

net/kcm/kcmproc.c:#RCU-list_traversed_in_non-reader_section

There is no need to use list_for_each_entry_rcu() in
kcm_stats_seq_show() as the list is always traversed under
knet->mutex held.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/kcm/kcmproc.c