Call cond_resched() after each fuzz test iteration. This avoids stall
warnings if fuzz_iterations is set very high for testing purposes.
While we're at it, also call cond_resched() after finishing testing each
test vector.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
req, desc, tsgl, hashstate);
if (err)
return err;
+ cond_resched();
}
}
#endif
hashstate);
if (err)
goto out;
+ cond_resched();
}
err = test_hash_vs_generic_impl(driver, generic_driver, maxkeysize, req,
desc, tsgl, hashstate);
&cfg, req, tsgls);
if (err)
return err;
+ cond_resched();
}
}
#endif
tsgls);
if (err)
return err;
+ cond_resched();
}
return 0;
}
&cfg, req, tsgls);
if (err)
return err;
+ cond_resched();
}
}
#endif
tsgls);
if (err)
return err;
+ cond_resched();
}
return 0;
}