diff options
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 653624792eaf..637806695bb9 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -1186,7 +1186,7 @@ static void event_callback(void *context) | |||
1186 | list_splice_init(&md->uevent_list, &uevents); | 1186 | list_splice_init(&md->uevent_list, &uevents); |
1187 | spin_unlock_irqrestore(&md->uevent_lock, flags); | 1187 | spin_unlock_irqrestore(&md->uevent_lock, flags); |
1188 | 1188 | ||
1189 | dm_send_uevents(&uevents, &md->disk->dev.kobj); | 1189 | dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj); |
1190 | 1190 | ||
1191 | atomic_inc(&md->event_nr); | 1191 | atomic_inc(&md->event_nr); |
1192 | wake_up(&md->eventq); | 1192 | wake_up(&md->eventq); |
@@ -1643,7 +1643,7 @@ out: | |||
1643 | *---------------------------------------------------------------*/ | 1643 | *---------------------------------------------------------------*/ |
1644 | void dm_kobject_uevent(struct mapped_device *md) | 1644 | void dm_kobject_uevent(struct mapped_device *md) |
1645 | { | 1645 | { |
1646 | kobject_uevent(&md->disk->dev.kobj, KOBJ_CHANGE); | 1646 | kobject_uevent(&disk_to_dev(md->disk)->kobj, KOBJ_CHANGE); |
1647 | } | 1647 | } |
1648 | 1648 | ||
1649 | uint32_t dm_next_uevent_seq(struct mapped_device *md) | 1649 | uint32_t dm_next_uevent_seq(struct mapped_device *md) |