Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af970a4 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

rcutorture: WARN_ON_ONCE(1) when detecting an error

this makes it easier for automated tests to pick up such failures.
parent 766d0278
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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++)