]> git.baikalelectronics.ru Git - kernel.git/commit
lib: crc32: conditionally resched when running testcases
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 4 Nov 2013 16:10:26 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2013 20:27:08 +0000 (15:27 -0500)
commit54bb295f86ff29b306a6199cac8c9ec86db27c8d
tree8d2abcf4fdee4db65750cccafddaba5f1a05ef2d
parent79074679e2698d5021324526c92aa07ba0706814
lib: crc32: conditionally resched when running testcases

Fengguang reports that when crc32 selftests are running on startup, on
some e.g. 32bit systems, we can get a CPU stall like "INFO: rcu_sched
self-detected stall on CPU { 0} (t=2101 jiffies g=4294967081 c=4294967080
q=41)". As this is not intended, add a cond_resched() at the end of a
test case to fix it. Introduced by 09bb45e118 ("lib: crc32: add test cases
for crc32{, c}_combine routines").

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/crc32.c