Remove 'checkpointing' side effect of --wait-clean
Now that mdmon records periodic checkpoints, and checkpoints every ->set_array_state() event we no longer need to 'idle' sync_action from --wait-clean. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
4f0a7acc9a
commit
6a0ee6a077
7
mdadm.8
7
mdadm.8
|
@ -1195,14 +1195,11 @@ listed, otherwise it will return failure.
|
||||||
For each md device given, or each device in /proc/mdstat if
|
For each md device given, or each device in /proc/mdstat if
|
||||||
.B \-\-scan
|
.B \-\-scan
|
||||||
is given, arrange for the array to be marked clean as soon as possible.
|
is given, arrange for the array to be marked clean as soon as possible.
|
||||||
Also, quiesce resync so that the monitor for external metadata arrays
|
|
||||||
(mdmon) has an opportunity to checkpoint the resync position.
|
|
||||||
.I mdadm
|
.I mdadm
|
||||||
will return with success if the array uses external metadata and we
|
will return with success if the array uses external metadata and we
|
||||||
successfully waited. For native arrays this returns immediately as the
|
successfully waited. For native arrays this returns immediately as the
|
||||||
kernel handles both dirty-clean transitions and resync checkpointing in
|
kernel handles dirty-clean transitions at shutdown. No action is taken
|
||||||
the kernel at shutdown. No action is taken if safe-mode handling is
|
if safe-mode handling is disabled.
|
||||||
disabled.
|
|
||||||
|
|
||||||
.SH For Incremental Assembly mode:
|
.SH For Incremental Assembly mode:
|
||||||
.TP
|
.TP
|
||||||
|
|
3
sysfs.c
3
sysfs.c
|
@ -852,9 +852,6 @@ int WaitClean(char *dev, int sock, int verbose)
|
||||||
tm.tv_sec = 5;
|
tm.tv_sec = 5;
|
||||||
tm.tv_usec = 0;
|
tm.tv_usec = 0;
|
||||||
|
|
||||||
/* give mdmon a chance to checkpoint resync */
|
|
||||||
sysfs_set_str(mdi, NULL, "sync_action", "idle");
|
|
||||||
|
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
|
|
||||||
/* wait for array_state to be clean */
|
/* wait for array_state to be clean */
|
||||||
|
|
Loading…
Reference in New Issue