summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-29 01:07:53 (GMT)
committerNeilBrown <neilb@suse.de>2010-05-18 05:27:54 (GMT)
commita047e125403112ceb4d41e68307a2e7498ddba4e (patch)
tree392928f408e3a6a2d40a7c3b6a178fbb3c411e06 /firmware
parent6177b472ab14e1ac88896960370dd54ba577d926 (diff)
downloadlinux-fsl-qoriq-a047e125403112ceb4d41e68307a2e7498ddba4e.tar.xz
md: factor md_stop_writes out of do_md_stop.
Further refactoring of do_md_stop. This one requires some explanation as it takes code from different places in do_md_stop, so some re-ordering happens. We only get into this part of do_md_stop if there are no active opens of the device, so no writes can be happening and the device must have been flushed. In md_stop_writes we want to stop any internal sources of writes - i.e. resync - and flush out the metadata. The only code that was previously before some of this code is code to clean up the queue, the mddev, the gendisk, or sysfs, all of which is probably better after code that makes active changes (i.e. triggers writes). Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions