Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb7f8d22 authored by Dan Williams's avatar Dan Williams Committed by NeilBrown
Browse files

md: notify mdstat waiters of level change



Level modifications change the output of mdstat.  The mdmon manager
thread is interested in these events for external metadata management.

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent f1b29bca
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3075,6 +3075,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
	set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
	set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
	md_wakeup_thread(mddev->thread);
	md_wakeup_thread(mddev->thread);
	sysfs_notify(&mddev->kobj, NULL, "level");
	sysfs_notify(&mddev->kobj, NULL, "level");
	md_new_event(mddev);
	return rv;
	return rv;
}
}