diff --git a/cmdline/dry.c b/cmdline/dry.c index bfe9bd07..c49c2265 100644 --- a/cmdline/dry.c +++ b/cmdline/dry.c @@ -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); diff --git a/cmdline/scrub.c b/cmdline/scrub.c index aa70962a..0e54b7c2 100644 --- a/cmdline/scrub.c +++ b/cmdline/scrub.c @@ -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);