diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-03-18 12:23:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-21 14:11:38 +0000 |
commit | 76eea6c2e663f7e9fbc258c82811ad9e657e085f (patch) | |
tree | 1c58d92bc84501a0064e648534130c88add05a71 /drivers/net/phy/amd.c | |
parent | 8879b32a3a809a183e6e2998725a0f33c4e42d41 (diff) |
netdevsim: replace port_list_lock with devlink instance lock
Take advantage of the devlink instance lock for protecting
the port list. This will simplify locking even more once
all devlink callbacks hold the instance lock.
We need to add locking in nsim_dev_port_add_all() which used
to assume higher layer protection when accessing the list.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/amd.c')
0 files changed, 0 insertions, 0 deletions