mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
rcutorture: WARN_ON_ONCE(1) when detecting an error
this makes it easier for automated tests to pick up such failures.
This commit is contained in:
parent
766d02786e
commit
5af970a48f
1 changed files with 1 additions and 0 deletions
|
@ -687,6 +687,7 @@ rcu_torture_printk(char *page)
|
|||
if (i > 1) {
|
||||
cnt += sprintf(&page[cnt], "!!! ");
|
||||
atomic_inc(&n_rcu_torture_error);
|
||||
WARN_ON_ONCE(1);
|
||||
}
|
||||
cnt += sprintf(&page[cnt], "Reader Pipe: ");
|
||||
for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++)
|
||||
|
|
Loading…
Reference in a new issue