md: clean up irregularity with raid autodetect
commitd0fae18f1b53a1d39135a968792be034bdf7ff26
authorNeilBrown <neilb@suse.de>
Tue, 4 Mar 2008 22:29:31 +0000 (4 14:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:18 +0000 (4 16:35 -0800)
tree3448dab652696848df47dcafb7772220b9e58e4f
parenta1801f858e57f87a7f79914346921cc729632295
md: clean up irregularity with raid autodetect

When a raid1 array is stopped, all components currently get added to the list
for auto-detection.  However we should really only add components that were
found by autodetection in the first place.  So add a flag to record that
information, and use it.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c
include/linux/raid/md_k.h