]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: replace vfs_lock with devlink instance lock
authorJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 19:23:43 +0000 (12:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Mar 2022 14:11:38 +0000 (14:11 +0000)
commit5d70a96343bf0d9ba7efc90ff1aeaa811c51a57f
tree8b1f08cd68db53091d331c25bbe01a7a417d70c6
parent95f651c04fdb55077c5ef61a3bfd3056fe602271
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>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h