提交 49f019d6 编写于 作者: G Greg Kroah-Hartman

Driver core: remove use of rwsem

This lock is never used by the rest of the driver core, so the fact that
we are grabbing it here means it isn't correct...
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 88db4721
...@@ -36,7 +36,6 @@ void device_shutdown(void) ...@@ -36,7 +36,6 @@ void device_shutdown(void)
{ {
struct device * dev, *devn; struct device * dev, *devn;
down_write(&devices_subsys.rwsem);
list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.kset.list, list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.kset.list,
kobj.entry) { kobj.entry) {
if (dev->bus && dev->bus->shutdown) { if (dev->bus && dev->bus->shutdown) {
...@@ -47,7 +46,6 @@ void device_shutdown(void) ...@@ -47,7 +46,6 @@ void device_shutdown(void)
dev->driver->shutdown(dev); dev->driver->shutdown(dev);
} }
} }
up_write(&devices_subsys.rwsem);
sysdev_shutdown(); sysdev_shutdown();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册