]> bbs.cooldavid.org Git - net-next-2.6.git/commit
md: be more careful setting MD_CHANGE_CLEAN
authorNeilBrown <neilb@suse.de>
Tue, 1 Jun 2010 09:37:26 +0000 (19:37 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 26 Jul 2010 02:52:27 +0000 (12:52 +1000)
commit676e42d896ab6967859fabbb06f4e11b9615cbcf
treeefab4dffe8e930ec9ef51a5a4d4fd04ffe3749b1
parentf4be6b43f1ac60dff00ef0923ee43b0e08872947
md: be more careful setting MD_CHANGE_CLEAN

When MD_CHANGE_CLEAN is set we might block in md_write_start.
So we should only set it when fairly sure that something will clear
it.

There are two places where it is set so as to encourage a metadata
update to record the progress of resync/recovery.  This should only
be done if the internal metadata update mechanisms are in use, which
can be tested by by inspecting '->persistent'.

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