diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-03-18 20:23:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-21 15:11:38 +0100 |
commit | aff3a925094633a5b77058b9a715efbb12fc2698 (patch) | |
tree | 8b1f08cd68db53091d331c25bbe01a7a417d70c6 /drivers/net/netdevsim/netdevsim.h | |
parent | netdevsim: replace port_list_lock with devlink instance lock (diff) | |
download | linux-aff3a925094633a5b77058b9a715efbb12fc2698.tar.xz linux-aff3a925094633a5b77058b9a715efbb12fc2698.zip |
netdevsim: replace vfs_lock with devlink instance lock
Similarly to the previous commit, use the devlink instance
lock and let it replace the vfs_lock.
nsim_esw_legacy_enable() was locked by both port lock and
vfs lock so one set of lock/unlocks goes away.
netdevsim's .eswitch_mode_set callback is now ready for
the callback to take the instance lock.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 8dd6f975f32d..0b122872b2c9 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -261,7 +261,6 @@ struct nsim_dev { struct dentry *take_snapshot; struct dentry *nodes_ddir; - struct mutex vfs_lock; /* Protects vfconfigs */ struct nsim_vf_config *vfconfigs; struct bpf_offload_dev *bpf_dev; |