diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index d11135604403..ae50a2419cc6 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3200,7 +3200,7 @@ static int do_md_run(mddev_t * mddev) | |||
3200 | 3200 | ||
3201 | mddev->changed = 1; | 3201 | mddev->changed = 1; |
3202 | md_new_event(mddev); | 3202 | md_new_event(mddev); |
3203 | kobject_uevent(&mddev->gendisk->kobj, KOBJ_ONLINE); | 3203 | kobject_uevent(&mddev->gendisk->kobj, KOBJ_CHANGE); |
3204 | return 0; | 3204 | return 0; |
3205 | } | 3205 | } |
3206 | 3206 | ||
@@ -3314,7 +3314,6 @@ static int do_md_stop(mddev_t * mddev, int mode) | |||
3314 | 3314 | ||
3315 | module_put(mddev->pers->owner); | 3315 | module_put(mddev->pers->owner); |
3316 | mddev->pers = NULL; | 3316 | mddev->pers = NULL; |
3317 | kobject_uevent(&mddev->gendisk->kobj, KOBJ_OFFLINE); | ||
3318 | if (mddev->ro) | 3317 | if (mddev->ro) |
3319 | mddev->ro = 0; | 3318 | mddev->ro = 0; |
3320 | } | 3319 | } |