Re: [Patch net 1/2] act_ife: only acquire tcf_lock for existing actions

2016-06-23 Thread Jamal Hadi Salim
On 16-06-20 04:37 PM, Cong Wang wrote: Alexey reported that we have GFP_KERNEL allocation when holding the spinlock tcf_lock. Actually we don't have to take that spinlock for all the cases, especially for the new one we just create. To modify the existing actions, we still need this spinlock to

[Patch net 1/2] act_ife: only acquire tcf_lock for existing actions

2016-06-20 Thread Cong Wang
Alexey reported that we have GFP_KERNEL allocation when holding the spinlock tcf_lock. Actually we don't have to take that spinlock for all the cases, especially for the new one we just create. To modify the existing actions, we still need this spinlock to make sure the whole update is atomic.