projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1ffd62
)
staging: get rid of dev_base_lock
author
Eric Dumazet
<eric.dumazet@gmail.com>
Fri, 29 Oct 2010 13:19:27 +0000
(15:19 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 9 Nov 2010 23:55:53 +0000
(15:55 -0800)
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>
drivers/staging/wlags49_h2/wl_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wlags49_h2/wl_sysfs.c
b/drivers/staging/wlags49_h2/wl_sysfs.c
index
e4c8804
..
9b833b3
100644
(file)
--- a/
drivers/staging/wlags49_h2/wl_sysfs.c
+++ b/
drivers/staging/wlags49_h2/wl_sysfs.c
@@
-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;
- r
ead_lock(&dev_base_lock
);
+ r
cu_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,
}
}
- r
ead_unlock(&dev_base_lock
);
+ r
cu_read_unlock(
);
return ret;
}