* [PATCH 02/42] driver core: Don't remove kobjects in device_shutdown.
@ 2009-11-03 11:04 Eric W. Biederman
0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2009-11-03 11:04 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, kay.sievers
device_shutdown is defined to just shutdown the hardware and to not
clean up any kernel data structures. Therefore don't put the kobjects
for /sys/dev and /sys/dev/block and /sys/dev/char.
This ensures we don't remove /sys/dev/block and /sys/dev/char while
we still have symlinks from there to the actual devices.
Acked-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
---
drivers/base/core.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 6bee6af..3324d5a 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1728,8 +1728,5 @@ void device_shutdown(void)
dev->driver->shutdown(dev);
}
}
- kobject_put(sysfs_dev_char_kobj);
- kobject_put(sysfs_dev_block_kobj);
- kobject_put(dev_kobj);
async_synchronize_full();
}
--
1.6.5.2.143.g8cc62
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-03 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 11:04 [PATCH 02/42] driver core: Don't remove kobjects in device_shutdown Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox