Loading drivers/md/dm-ioctl.c +2 −0 Original line number Diff line number Diff line Loading @@ -332,6 +332,8 @@ static int dm_hash_rename(const char *old, const char *new) dm_table_put(table); } dm_kobject_uevent(hc->md); dm_put(hc->md); up_write(&_hash_lock); kfree(old_name); Loading drivers/md/dm.c +6 −1 Original line number Diff line number Diff line Loading @@ -1514,7 +1514,7 @@ int dm_resume(struct mapped_device *md) dm_table_unplug_all(map); kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); dm_kobject_uevent(md); r = 0; Loading @@ -1528,6 +1528,11 @@ int dm_resume(struct mapped_device *md) /*----------------------------------------------------------------- * Event notification. *---------------------------------------------------------------*/ void dm_kobject_uevent(struct mapped_device *md) { kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); } uint32_t dm_next_uevent_seq(struct mapped_device *md) { return atomic_add_return(1, &md->uevent_seq); Loading drivers/md/dm.h +2 −0 Original line number Diff line number Diff line Loading @@ -187,4 +187,6 @@ union map_info *dm_get_mapinfo(struct bio *bio); int dm_open_count(struct mapped_device *md); int dm_lock_for_deletion(struct mapped_device *md); void dm_kobject_uevent(struct mapped_device *md); #endif Loading
drivers/md/dm-ioctl.c +2 −0 Original line number Diff line number Diff line Loading @@ -332,6 +332,8 @@ static int dm_hash_rename(const char *old, const char *new) dm_table_put(table); } dm_kobject_uevent(hc->md); dm_put(hc->md); up_write(&_hash_lock); kfree(old_name); Loading
drivers/md/dm.c +6 −1 Original line number Diff line number Diff line Loading @@ -1514,7 +1514,7 @@ int dm_resume(struct mapped_device *md) dm_table_unplug_all(map); kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); dm_kobject_uevent(md); r = 0; Loading @@ -1528,6 +1528,11 @@ int dm_resume(struct mapped_device *md) /*----------------------------------------------------------------- * Event notification. *---------------------------------------------------------------*/ void dm_kobject_uevent(struct mapped_device *md) { kobject_uevent(&md->disk->kobj, KOBJ_CHANGE); } uint32_t dm_next_uevent_seq(struct mapped_device *md) { return atomic_add_return(1, &md->uevent_seq); Loading
drivers/md/dm.h +2 −0 Original line number Diff line number Diff line Loading @@ -187,4 +187,6 @@ union map_info *dm_get_mapinfo(struct bio *bio); int dm_open_count(struct mapped_device *md); int dm_lock_for_deletion(struct mapped_device *md); void dm_kobject_uevent(struct mapped_device *md); #endif