net: devlink: don't take devlink_mutex for devlink_compat_*
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Mar 2019 10:14:29 +0000 (11:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2019 18:55:31 +0000 (14:55 -0400)
commite0dcd386d1fc6ed9e90d76dfdf533287555d79d2
treecfbb9fa93106a625d64eec5315516d77d0e1011c
parentc3f10cbcaa3d5e1980733c3ccd0261df426412d2
net: devlink: don't take devlink_mutex for devlink_compat_*

The netdevice is guaranteed to not disappear so we can rely that
devlink_port and devlink won't disappear as well. No need to take
devlink_mutex so don't take it here.

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