Allow to disable the multithread mode

Use the --test-io-cache=1 option to use a special
monothread mode.
This commit is contained in:
Andrea Mazzoleni 2016-03-15 22:40:13 +01:00
parent 1ed5a25f79
commit fe3ad31cbb
6 changed files with 350 additions and 142 deletions

View file

@ -1221,6 +1221,9 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
/* This because we want to keep track of the time usage */
state_usage_misc(state);
/* write start */
io_write_preset(&io, blockcur, !parity_going_to_be_updated);
/* write the parity */
for (l = 0; l < state->level; ++l) {
unsigned levcur;