ethtool: push the rtnl_lock into dev_ethtool()
Don't take the lock in net/core/dev_ioctl.c, we'll have things to do outside rtnl_lock soon. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c6e03dbe0c
commit
f49deaa64a
@@ -518,9 +518,7 @@ int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr,
|
||||
|
||||
case SIOCETHTOOL:
|
||||
dev_load(net, ifr->ifr_name);
|
||||
rtnl_lock();
|
||||
ret = dev_ethtool(net, ifr, data);
|
||||
rtnl_unlock();
|
||||
if (colon)
|
||||
*colon = ':';
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user