Skip to content

Commit

Permalink
md: notify mdstat waiters of level change
Browse files Browse the repository at this point in the history
Level modifications change the output of mdstat.  The mdmon manager
thread is interested in these events for external metadata management.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Dan Williams authored and NeilBrown committed May 18, 2010
1 parent f1b29bc commit bb7f8d2
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 @@ -3075,6 +3075,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
md_wakeup_thread(mddev->thread);
sysfs_notify(&mddev->kobj, NULL, "level");
md_new_event(mddev);
return rv;
}

Expand Down

0 comments on commit bb7f8d2

Please sign in to comment.