md: don't allow "-sync" to be set for device in an active array.
authorNeilBrown <neilb@suse.de>
Tue, 30 Sep 2014 05:24:25 +0000 (15:24 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Oct 2014 02:08:29 +0000 (13:08 +1100)
If an array is active, devices can be marked 'faulty', but simply
removing the 'sync' flag is wrong.  That only makes sense
for an array which is not active (and is probably only useful
for testing anyway).

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c

diff --cc drivers/md/md.c
Simple merge