Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171489
b: refs/heads/master
c: 246c65a
h: refs/heads/master
i:
  171487: 137abdd
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 11, 2009
1 parent 4627e92 commit 7421965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 292f4f3ce4b57f17a667cb34c72bca081dcc0281
refs/heads/master: 246c65add098a5ec14310ea17f39fdd57ff8407d
7 changes: 2 additions & 5 deletions trunk/drivers/parisc/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,9 @@ static __inline__ int led_get_net_activity(void)

rx_total = tx_total = 0;

/* we are running as a workqueue task, so locking dev_base
* for reading should be OK */
read_lock(&dev_base_lock);
/* we are running as a workqueue task, so we can use an RCU lookup */
rcu_read_lock();
for_each_netdev(&init_net, dev) {
for_each_netdev_rcu(&init_net, dev) {
const struct net_device_stats *stats;
struct in_device *in_dev = __in_dev_get_rcu(dev);
if (!in_dev || !in_dev->ifa_list)
Expand All @@ -368,7 +366,6 @@ static __inline__ int led_get_net_activity(void)
tx_total += stats->tx_packets;
}
rcu_read_unlock();
read_unlock(&dev_base_lock);

retval = 0;

Expand Down

0 comments on commit 7421965

Please sign in to comment.