Quiesce scrub read-ahead before autosave and distinguish read/write barriers

This commit is contained in:
Andrea Mazzoleni 2026-09-24 19:41:52 +02:00
parent fba3f74538
commit bcfd2734b6
4 changed files with 32 additions and 21 deletions

View file

@ -976,6 +976,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
state_progress_stop(state);
msg_progress("Autosaving...\n");
state_read_barrier(&io);
state_write(state);
state_progress_restart(state);