]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: protect block idr with spinlock
authorVlad Buslov <vladbu@mellanox.com>
Mon, 24 Sep 2018 16:22:56 +0000 (19:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 03:17:36 +0000 (20:17 -0700)
commit8a2d0b0b713facefe2ec1e845ec38f18e370988a
tree88c2beabdffbd2e3e041cf6826d47cf5fc52f858
parentca2f23b7556fc799862268d260804edf27a5f0b4
net: sched: protect block idr with spinlock

Protect block idr access with spinlock, instead of relying on rtnl lock.
Take tn->idr_lock spinlock during block insertion and removal.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c