]> git.baikalelectronics.ru Git - kernel.git/commit
mld: get rid of inet6_dev->mc_lock
authorTaehee Yoo <ap420073@gmail.com>
Thu, 25 Mar 2021 16:16:52 +0000 (16:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:14:55 +0000 (15:14 -0700)
commit9c330e8c4179637790f3c0624ed713742417fc33
tree7f7528820bbb5ce295f1d085d8cc327afe669eb0
parent8e7452e98b5811f038788b5b4fe7acc523c67cac
mld: get rid of inet6_dev->mc_lock

The purpose of mc_lock is to protect inet6_dev->mc_tomb.
But mc_tomb is already protected by RTNL and all functions,
which manipulate mc_tomb are called under RTNL.
So, mc_lock is not needed.
Furthermore, it is spinlock so the critical section is atomic.
In order to reduce atomic context, it should be removed.

Suggested-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/if_inet6.h
net/ipv6/mcast.c