Re: [PATCH net-next] net: sched: act_nat: remove dependency on rtnl lock

2018-09-08 Thread David Miller
From: Vlad Buslov Date: Mon, 3 Sep 2018 10:09:20 +0300 > According to the new locking rule, we have to take tcf_lock for both > ->init() and ->dump(), as RTNL will be removed. > > Use tcf spinlock to protect private nat action data from concurrent > modification during dump. (nat init already

[PATCH net-next] net: sched: act_nat: remove dependency on rtnl lock

2018-09-03 Thread Vlad Buslov
According to the new locking rule, we have to take tcf_lock for both ->init() and ->dump(), as RTNL will be removed. Use tcf spinlock to protect private nat action data from concurrent modification during dump. (nat init already uses tcf spinlock when changing action state) Signed-off-by: Vlad