Explorar o código

rcutorture: WARN_ON_ONCE(1) when detecting an error

this makes it easier for automated tests to pick up such failures.
Ingo Molnar %!s(int64=17) %!d(string=hai) anos
pai
achega
5af970a48f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      kernel/rcutorture.c

+ 1 - 0
kernel/rcutorture.c

@@ -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++)