Quiesce asynchronous read-ahead I/O before thermal cooldown in dry and scrub

This commit is contained in:
Andrea Mazzoleni 2026-08-26 19:07:28 +02:00
parent 2a73074faa
commit fcb6a5ca91
2 changed files with 6 additions and 0 deletions

View file

@ -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);

View file

@ -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);