aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-19 00:57:36 -0400
committerGreg KH <greg@press.kroah.org>2005-04-19 00:57:36 -0400
commitb41148c0d8d2fa0c36cebd9ba3ee4cfc0dc7cb9a (patch)
tree95b16a5913b8940fac3996b5e15aff9a2f55a225
parent0700f56bbca56bc930aab717bc5086336991441f (diff)
[PATCH] kobject/hotplug split - block core
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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--fs/partitions/check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 31cff785b3bd..2cab98a9a621 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -337,6 +337,7 @@ void register_disk(struct gendisk *disk)
337 if ((err = kobject_add(&disk->kobj))) 337 if ((err = kobject_add(&disk->kobj)))
338 return; 338 return;
339 disk_sysfs_symlinks(disk); 339 disk_sysfs_symlinks(disk);
340 kobject_hotplug(&disk->kobj, KOBJ_ADD);
340 341
341 /* No minors to use for partitions */ 342 /* No minors to use for partitions */
342 if (disk->minors == 1) { 343 if (disk->minors == 1) {
@@ -441,5 +442,6 @@ void del_gendisk(struct gendisk *disk)
441 sysfs_remove_link(&disk->driverfs_dev->kobj, "block"); 442 sysfs_remove_link(&disk->driverfs_dev->kobj, "block");
442 put_device(disk->driverfs_dev); 443 put_device(disk->driverfs_dev);
443 } 444 }
445 kobject_hotplug(&disk->kobj, KOBJ_REMOVE);
444 kobject_del(&disk->kobj); 446 kobject_del(&disk->kobj);
445} 447}