md: call md_stop_writes from md_stop
authorNeilBrown <neilb@suse.de>
Thu, 1 Apr 2010 01:08:16 +0000 (12:08 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 May 2010 05:27:54 +0000 (15:27 +1000)
This moves the call to the other side of set_readonly, but that should
not be an issue.
This encapsulates in 'md_stop' all of the functionality for internally
stopping the array, leaving all the interactions with externalities
(sysfs, request_queue, gendisk) in do_md_stop.

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

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