提交 88923848 编写于 作者: E Eric Dumazet 提交者: Greg Kroah-Hartman

staging: get rid of dev_base_lock

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: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e1ffd62b
无相关合并请求
......@@ -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);
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册