* [PATCH 3/6] kobject/hotplug split - block core
@ 2005-03-18 4:00 Kay Sievers
0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2005-03-18 4:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg KH
kobject_add() and kobject_del() don't emit hotplug events anymore. Do it
ourselves if we are finished populating the device directory.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
===== fs/partitions/check.c 1.129 vs edited =====
--- 1.129/fs/partitions/check.c 2005-01-31 07:33:40 +01:00
+++ edited/fs/partitions/check.c 2005-03-18 02:17:18 +01:00
@@ -337,6 +337,7 @@ void register_disk(struct gendisk *disk)
if ((err = kobject_add(&disk->kobj)))
return;
disk_sysfs_symlinks(disk);
+ kobject_hotplug(&disk->kobj, KOBJ_ADD);
/* No minors to use for partitions */
if (disk->minors == 1) {
@@ -441,5 +442,6 @@ void del_gendisk(struct gendisk *disk)
sysfs_remove_link(&disk->driverfs_dev->kobj, "block");
put_device(disk->driverfs_dev);
}
+ kobject_hotplug(&disk->kobj, KOBJ_REMOVE);
kobject_del(&disk->kobj);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-18 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 4:00 [PATCH 3/6] kobject/hotplug split - block core Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox