If I recall correctly, this fixes the primary symptom, but not the whole problem. When in --monitor mode, mdadm will reopen each device every 15 seconds to scan its status. As such, a shutdown could still fail if mdadm is still running and the timing is right. In that instance, retrying the shutdown on failure would likely be enough to solve the problem, but that sounds icky to me. Would be much better if mdadm could open a control device of some sort and query about running arrays instead of opening the arrays themselves.
Wouldn't simply killing the "mdadm --monitor" process early on in the shutdown process achieve the same result?
R. -- http://robinbowes.com - 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