Commit 328771de authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: remove stale mentions of dev_base_lock in comments

Change comments incorrectly mentioning dev_base_lock.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e154bb7a
...@@ -252,8 +252,8 @@ ndo_eth_ioctl: ...@@ -252,8 +252,8 @@ ndo_eth_ioctl:
Context: process Context: process
ndo_get_stats: ndo_get_stats:
Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU. Synchronization: rtnl_lock() semaphore, or RCU.
Context: atomic (can't sleep under rwlock or RCU) Context: atomic (can't sleep under RCU)
ndo_start_xmit: ndo_start_xmit:
Synchronization: __netif_tx_lock spinlock. Synchronization: __netif_tx_lock spinlock.
......
...@@ -872,7 +872,7 @@ static netdev_tx_t enic_hard_start_xmit(struct sk_buff *skb, ...@@ -872,7 +872,7 @@ static netdev_tx_t enic_hard_start_xmit(struct sk_buff *skb,
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
/* dev_base_lock rwlock held, nominally process context */ /* rcu_read_lock potentially held, nominally process context */
static void enic_get_stats(struct net_device *netdev, static void enic_get_stats(struct net_device *netdev,
struct rtnl_link_stats64 *net_stats) struct rtnl_link_stats64 *net_stats)
{ {
......
...@@ -1761,7 +1761,7 @@ static void nv_get_stats(int cpu, struct fe_priv *np, ...@@ -1761,7 +1761,7 @@ static void nv_get_stats(int cpu, struct fe_priv *np,
/* /*
* nv_get_stats64: dev->ndo_get_stats64 function * nv_get_stats64: dev->ndo_get_stats64 function
* Get latest stats value from the nic. * Get latest stats value from the nic.
* Called with read_lock(&dev_base_lock) held for read - * Called with rcu_read_lock() held -
* only synchronized against unregister_netdevice. * only synchronized against unregister_netdevice.
*/ */
static void static void
...@@ -3090,7 +3090,7 @@ static void set_bufsize(struct net_device *dev) ...@@ -3090,7 +3090,7 @@ static void set_bufsize(struct net_device *dev)
/* /*
* nv_change_mtu: dev->change_mtu function * nv_change_mtu: dev->change_mtu function
* Called with dev_base_lock held for read. * Called with RTNL held for read.
*/ */
static int nv_change_mtu(struct net_device *dev, int new_mtu) static int nv_change_mtu(struct net_device *dev, int new_mtu)
{ {
......
...@@ -595,7 +595,7 @@ void efx_stop_all(struct efx_nic *efx) ...@@ -595,7 +595,7 @@ void efx_stop_all(struct efx_nic *efx)
efx_stop_datapath(efx); efx_stop_datapath(efx);
} }
/* Context: process, dev_base_lock or RTNL held, non-blocking. */ /* Context: process, rcu_read_lock or RTNL held, non-blocking. */
void efx_net_stats(struct net_device *net_dev, struct rtnl_link_stats64 *stats) void efx_net_stats(struct net_device *net_dev, struct rtnl_link_stats64 *stats)
{ {
struct efx_nic *efx = efx_netdev_priv(net_dev); struct efx_nic *efx = efx_netdev_priv(net_dev);
......
...@@ -2085,7 +2085,7 @@ int ef4_net_stop(struct net_device *net_dev) ...@@ -2085,7 +2085,7 @@ int ef4_net_stop(struct net_device *net_dev)
return 0; return 0;
} }
/* Context: process, dev_base_lock or RTNL held, non-blocking. */ /* Context: process, rcu_read_lock or RTNL held, non-blocking. */
static void ef4_net_stats(struct net_device *net_dev, static void ef4_net_stats(struct net_device *net_dev,
struct rtnl_link_stats64 *stats) struct rtnl_link_stats64 *stats)
{ {
......
...@@ -605,7 +605,7 @@ static size_t efx_siena_update_stats_atomic(struct efx_nic *efx, u64 *full_stats ...@@ -605,7 +605,7 @@ static size_t efx_siena_update_stats_atomic(struct efx_nic *efx, u64 *full_stats
return efx->type->update_stats(efx, full_stats, core_stats); return efx->type->update_stats(efx, full_stats, core_stats);
} }
/* Context: process, dev_base_lock or RTNL held, non-blocking. */ /* Context: process, rcu_read_lock or RTNL held, non-blocking. */
void efx_siena_net_stats(struct net_device *net_dev, void efx_siena_net_stats(struct net_device *net_dev,
struct rtnl_link_stats64 *stats) struct rtnl_link_stats64 *stats)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment