From fcb6a5ca91abc332ebe2e04f35169ba829daa5e4 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 26 Aug 2026 19:07:28 +0200 Subject: [PATCH] Quiesce asynchronous read-ahead I/O before thermal cooldown in dry and scrub --- cmdline/dry.c | 3 +++ cmdline/scrub.c | 3 +++ 2 files changed, 6 insertions(+) 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);