Re: [PATCH net-next 09/12] net: sched: flower: handle concurrent tcf proto deletion

2019-02-19 Thread Vlad Buslov
On Mon 18 Feb 2019 at 20:47, Cong Wang wrote: > On Wed, Feb 13, 2019 at 11:47 PM Vlad Buslov wrote: >> >> Without rtnl lock protection tcf proto can be deleted concurrently. Check >> tcf proto 'deleting' flag after taking tcf spinlock to verify that no >> concurrent deletion is in progress. Ret

Re: [PATCH net-next 09/12] net: sched: flower: handle concurrent tcf proto deletion

2019-02-18 Thread Cong Wang
On Wed, Feb 13, 2019 at 11:47 PM Vlad Buslov wrote: > > Without rtnl lock protection tcf proto can be deleted concurrently. Check > tcf proto 'deleting' flag after taking tcf spinlock to verify that no > concurrent deletion is in progress. Return EAGAIN error if concurrent > deletion detected, whi

[PATCH net-next 09/12] net: sched: flower: handle concurrent tcf proto deletion

2019-02-13 Thread Vlad Buslov
Without rtnl lock protection tcf proto can be deleted concurrently. Check tcf proto 'deleting' flag after taking tcf spinlock to verify that no concurrent deletion is in progress. Return EAGAIN error if concurrent deletion detected, which will cause caller to retry and possibly create new instance