md: notify about new spare disk in the container
authorAlexey Obitotskiy <aleksey.obitotskiy@intel.com>
Fri, 28 Jul 2017 13:49:25 +0000 (15:49 +0200)
committerShaohua Li <shli@fb.com>
Fri, 25 Aug 2017 17:21:45 +0000 (10:21 -0700)
commit5492c46e94b57b5137e3ba2c9ae22b2dcc3fc2cc
treed73aaf51ac021ec18e5b24b270500f66a11411bc
parent208410b546207cfc4c832635fa46419cfa86b4cd
md: notify about new spare disk in the container

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.

Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c