Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75104
b: refs/heads/master
c: 69267a3
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon committed Dec 20, 2007
1 parent 7ad599a commit eb4384c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adfe47702c4726b3e045f9f83178def02833be4c
refs/heads/master: 69267a30bed1fabec658058c63845528a8b813d4
2 changes: 2 additions & 0 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/md/dm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eb4384c

Please sign in to comment.