]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: testmgr - add some more preemption points
authorEric Biggers <ebiggers@google.com>
Mon, 3 Jun 2019 05:42:33 +0000 (22:42 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Jun 2019 06:31:40 +0000 (14:31 +0800)
commite63e1b0dd0003dc31f73d875907432be3a2abe5d
treed167cb48490dd9b76c1b0cd2921429df97153fda
parent177f87d063ebc7a11a38bdafaca8fec4a9dae13e
crypto: testmgr - add some more preemption points

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>
crypto/testmgr.c