summaryrefslogtreecommitdiffstats
path: root/net/tipc/monitor.h
diff options
context:
space:
mode:
authorXin Long2019-07-01 18:54:55 +0200
committerDavid S. Miller2019-07-07 22:18:53 +0200
commit30a4616c1bfd121ecd7e4325aebd6621e0af719f (patch)
tree26f15dadea9d99a92fd10312a6fea5d4c1cb90cd /net/tipc/monitor.h
parentr8169: sync few chip names with vendor driver (diff)
downloadkernel-qcow2-linux-30a4616c1bfd121ecd7e4325aebd6621e0af719f.tar.gz
kernel-qcow2-linux-30a4616c1bfd121ecd7e4325aebd6621e0af719f.tar.xz
kernel-qcow2-linux-30a4616c1bfd121ecd7e4325aebd6621e0af719f.zip
tipc: use rcu dereference functions properly
For these places are protected by rcu_read_lock, we change from rcu_dereference_rtnl to rcu_dereference, as there is no need to check if rtnl lock is held. For these places are protected by rtnl_lock, we change from rcu_dereference_rtnl to rtnl_dereference/rcu_dereference_protected, as no extra memory barriers are needed under rtnl_lock() which also protects tn->bearer_list[] and dev->tipc_ptr/b->media_ptr updating. rcu_dereference_rtnl will be only used in the places where it could be under rcu_read_lock or rtnl_lock. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/monitor.h')
0 files changed, 0 insertions, 0 deletions