md: expedite metadata update when switching read-auto -> active
authorNeilBrown <neilb@suse.de>
Thu, 28 Feb 2013 00:59:03 +0000 (11:59 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 28 Feb 2013 00:59:03 +0000 (11:59 +1100)
commitf3378b48705154b9089affb2d2e939622aea68f1
treec86f47335ba1bd4fea0dfeb56b0484cebec8dc9b
parent51acbcec6c42b24482bac18e42befc822524535d
md: expedite metadata update when switching  read-auto -> active

If something has failed while the array was read-auto,
then when we switch to 'active' we need to update the metadata.
This will happen anyway but it is good to expedite it, and
also to ensure any failed device has been released by the
underlying device before we try to action the ioctl which
caused us to switch to 'active' mode.

Reported-by: Joe Lawrence <Joe.Lawrence@stratus.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c