Message ID | 20191103233356.5472-1-chris.smart@humanservices.gov.au (mailing list archive) |
---|---|
State | Accepted |
Commit | 9f0acf9f80ad504573e6482fb00b53866a9b9d2f |
Headers | show |
Series | [1/1] powerpc/crypto: Add cond_resched() in crc-vpmsum self-test | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (b9ba205b97bda75388e4014914ae0bdc0022464c) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/build-pmac32 | success | Build succeeded |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
On Sun, 2019-11-03 at 23:33:56 UTC, Chris Smart wrote: > The stress test for vpmsum implementations executes a long for loop in > the kernel. This blocks the scheduler, which prevents other tasks from > running, resulting in a warning. > > This fix adds a call to cond_reshed() at the end of each loop, which > allows the scheduler to run other tasks as required. > > Signed-off-by: Chris Smart <chris.smart@humanservices.gov.au> Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/9f0acf9f80ad504573e6482fb00b53866a9b9d2f cheers
diff --git a/arch/powerpc/crypto/crc-vpmsum_test.c b/arch/powerpc/crypto/crc-vpmsum_test.c index 47985219a68f..dce86e75f1a8 100644 --- a/arch/powerpc/crypto/crc-vpmsum_test.c +++ b/arch/powerpc/crypto/crc-vpmsum_test.c @@ -103,6 +103,7 @@ static int __init crc_test_init(void) crc32, verify32, len); break; } + cond_resched(); } pr_info("crc-vpmsum_test done, completed %lu iterations\n", i); } while (0);
The stress test for vpmsum implementations executes a long for loop in the kernel. This blocks the scheduler, which prevents other tasks from running, resulting in a warning. This fix adds a call to cond_reshed() at the end of each loop, which allows the scheduler to run other tasks as required. Signed-off-by: Chris Smart <chris.smart@humanservices.gov.au> --- arch/powerpc/crypto/crc-vpmsum_test.c | 1 + 1 file changed, 1 insertion(+)