mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
Make snapraid_io track started state and defer async I/O after initial thermal control
This commit is contained in:
parent
595461f725
commit
74647cda14
6 changed files with 39 additions and 16 deletions
|
|
@ -529,15 +529,15 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
|
||||
msg_progress("Scrubbing...\n");
|
||||
|
||||
/* start all the worker threads */
|
||||
io_start(&io, blockstart, blockmax, block_enabled);
|
||||
|
||||
int alert = state_progress_begin(state, blockstart, blockmax, countmax);
|
||||
if (alert > 0)
|
||||
goto end;
|
||||
if (alert < 0)
|
||||
goto bail;
|
||||
|
||||
/* start all the worker threads */
|
||||
io_start(&io, blockstart, blockmax, block_enabled);
|
||||
|
||||
while (1) {
|
||||
unsigned char* buffer_recov[LEV_MAX];
|
||||
snapraid_info info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue