]> git.baikalelectronics.ru Git - kernel.git/commit
net: devlink: remove devlink_mutex
authorJiri Pirko <jiri@nvidia.com>
Fri, 29 Jul 2022 07:10:37 +0000 (09:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2022 11:14:00 +0000 (12:14 +0100)
commit6da000fcde90a0c63fa13c8ccfa4f6078c920cb3
tree92b6fddec55ca49cd332127485c3aecff557bc6f
parent070fab586cf79e12a2908df57d4900a0ee90d67c
net: devlink: remove devlink_mutex

All accesses to devlink structure from userspace and drivers are locked
with devlink->lock instance mutex. Also, devlinks xa_array iteration is
taken care of by iteration helpers taking devlink reference.

Therefore, remove devlink_mutex as it is no longer needed.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c