Skip to content

Commit

Permalink
md: notify level changes through sysfs.
Browse files Browse the repository at this point in the history
Level changes can be very significant, so make sure
to notify them via sysfs.

Signed-off-by: Maciej Trela <maciej.trela@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
  • Loading branch information
Maciej Trela authored and NeilBrown committed May 18, 2010
1 parent 233fca3 commit 5cac786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -3059,6 +3059,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
set_bit(MD_CHANGE_DEVS, &mddev->flags);
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
md_wakeup_thread(mddev->thread);
sysfs_notify(&mddev->kobj, NULL, "level");
return rv;
}

Expand Down

0 comments on commit 5cac786

Please sign in to comment.