Re: [PATCH v3 06/11] net: sched: add 'delete' function to action ops

Jiri Pirko
2018-05-28T14:21:51Z

Sun, May 27, 2018 at 11:17:24PM CEST, vladbu@mellanox.com wrote:
>Extend action ops with 'delete' function. Each action type to implements
>its own delete function that doesn't depend on rtnl lock.
>
>Implement delete function that is required to delete actions without
>holding rtnl lock. Use action API function that atomically deletes action
>only if it is still in action idr. This implementation prevents concurrent
>threads from deleting same action twice.
>
>Signed-off-by: Vlad Buslov <vladbu@mellanox.com>

Signed-off-by: Jiri Pirko <jiri@mellanox.com>