md: don't update metadata when stopping a read-only array.
authorNeilBrown <neilb@suse.de>
Wed, 24 Apr 2013 01:42:42 +0000 (11:42 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 24 Apr 2013 01:42:42 +0000 (11:42 +1000)
commitb6d428c669159b8cfa5a83bb11abaaf4bdc170b0
tree1a26706aa57cc2bf4493951d564add73d2631335
parent7ceb17e87bde79d285a8b988cfed9eaeebe60b86
md: don't update metadata when stopping a read-only array.

read-only arrays should stay that way as much as possible.
Updating the metadata - which could be triggered by a re-add
while assembling the array metadata - should be avoided.

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