md: split md_set_readonly out of do_md_stop
authorNeilBrown <neilb@suse.de>
Mon, 29 Mar 2010 02:23:10 +0000 (13:23 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 May 2010 05:27:54 +0000 (15:27 +1000)
Using do_md_stop to set an array to read-only is a little confusing.
Now most of the common code has been factored out, split
md_set_readonly off in to a separate function.

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

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