mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Quiesce asynchronous read-ahead I/O before thermal cooldown in dry and scrub
This commit is contained in:
parent
2a73074faa
commit
fcb6a5ca91
2 changed files with 6 additions and 0 deletions
|
|
@ -343,6 +343,9 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
|
||||
state_progress_stop(state);
|
||||
|
||||
/* complete all read-ahead without consuming the results */
|
||||
io_quiesce(&io);
|
||||
|
||||
state_thermal_cooldown(state);
|
||||
|
||||
state_progress_restart(state);
|
||||
|
|
|
|||
|
|
@ -638,6 +638,9 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
|
||||
state_progress_stop(state);
|
||||
|
||||
/* complete all read-ahead without consuming the results */
|
||||
io_quiesce(&io);
|
||||
|
||||
state_thermal_cooldown(state);
|
||||
|
||||
state_progress_restart(state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue