aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorNeil Brown <neilb@notabene.brown>2008-06-27 18:31:41 -0400
committerNeil Brown <neilb@notabene.brown>2008-06-27 18:31:41 -0400
commit72a23c211e4587859d5bf61ac4962d76e593fb02 (patch)
treeb35b554d7eb9c4b3a2cbc4d9378d362e5e56e44f /Documentation
parent0fd62b861eac7d2dea9b7e939953b20f37186ea1 (diff)
Make sure all changes to md/sync_action are notified.
When the 'resync' thread starts or stops, when we explicitly set sync_action, or when we determine that there is definitely nothing to do, we notify sync_action. To stop "sync_action" from occasionally showing the wrong value, we introduce a new flags - MD_RECOVERY_RECOVER - to say that a recovery is probably needed or happening, and we make sure that we set MD_RECOVERY_RUNNING before clearing MD_RECOVERY_NEEDED. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/md.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt
index dca97ba4944a..c05bfb55659e 100644
--- a/Documentation/md.txt
+++ b/Documentation/md.txt
@@ -386,6 +386,12 @@ also have
386 'check' and 'repair' will start the appropriate process 386 'check' and 'repair' will start the appropriate process
387 providing the current state is 'idle'. 387 providing the current state is 'idle'.
388 388
389 This file responds to select/poll. Any important change in the value
390 triggers a poll event. Sometimes the value will briefly be
391 "recover" if a recovery seems to be needed, but cannot be
392 achieved. In that case, the transition to "recover" isn't
393 notified, but the transition away is.
394
389 mismatch_count 395 mismatch_count
390 When performing 'check' and 'repair', and possibly when 396 When performing 'check' and 'repair', and possibly when
391 performing 'resync', md will count the number of errors that are 397 performing 'resync', md will count the number of errors that are