Skip to content

Commit

Permalink
staging: get rid of dev_base_lock
Browse files Browse the repository at this point in the history
dev_base_lock was the legacy rwlock used to protect netdevice list, and
is expected to vanish.

We now use RTNL and RCU locking.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Eric Dumazet authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent e1ffd62 commit 8892384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/wlags49_h2/wl_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static ssize_t show_tallies(struct device *d, struct device_attribute *attr,
CFG_HERMES_TALLIES_STRCT tallies;
ssize_t ret = -EINVAL;

read_lock(&dev_base_lock);
rcu_read_lock();
if (dev_isalive(dev)) {
wl_lock(lp, &flags);

Expand Down Expand Up @@ -102,7 +102,7 @@ static ssize_t show_tallies(struct device *d, struct device_attribute *attr,
}
}

read_unlock(&dev_base_lock);
rcu_read_unlock();
return ret;
}

Expand Down

0 comments on commit 8892384

Please sign in to comment.