On Fri, Jul 21, 2017 at 12:19:04PM +0200, Alexey Obitotskiy wrote: > In case of external metadata arrays spare disks are added to containers > first. mdadm keeps monitoring /proc/mdstat output and when spare disk is > available, it moves it from the container to the array. The problem is > there is no notification of new spare disk in the container and mdadm > waits a long time (until timeout) before it takes the action. Hopefully we don't need this in the future after mdadm uses sysfs. > Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@xxxxxxxxx> > --- > drivers/md/md.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/md/md.c b/drivers/md/md.c > index 66f6b92..02f4c6f 100644 > --- a/drivers/md/md.c > +++ b/drivers/md/md.c > @@ -4283,6 +4283,7 @@ new_dev_store(struct mddev *mddev, const char *buf, size_t len) > if (err) > export_rdev(rdev); > mddev_unlock(mddev); > + md_new_event(mddev); Probably only do this in success? > return err ? err : len; > } > > -- > 2.7.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html