lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 10 Mar 2008 14:39:22 +0800
From:	Dave Young <hidave.darkstar@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	akpm@...ux-foundation.org, paulmck@...ux.vnet.ibm.com
Subject: [PATCH] [3/3] Use WARN_ON_SECS in rcupreempt.h

Use WARN_ON_SECS in rcupreempt.h to avoid warning flood 

Signed-off-by: Dave Young <hidave.darkstar@...il.com>

---
include/linux/rcupreempt.h |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff -upr linux/include/linux/rcupreempt.h linux.new/include/linux/rcupreempt.h
--- linux/include/linux/rcupreempt.h	2008-03-10 13:33:13.000000000 +0800
+++ linux.new/include/linux/rcupreempt.h	2008-03-10 13:32:35.000000000 +0800
@@ -88,7 +88,7 @@ DECLARE_PER_CPU(long, dynticks_progress_
 static inline void rcu_enter_nohz(void)
 {
 	__get_cpu_var(dynticks_progress_counter)++;
-	WARN_ON(__get_cpu_var(dynticks_progress_counter) & 0x1);
+	WARN_ON_SECS(__get_cpu_var(dynticks_progress_counter) & 0x1, 10);
 	mb();
 }
 
@@ -96,7 +96,7 @@ static inline void rcu_exit_nohz(void)
 {
 	mb();
 	__get_cpu_var(dynticks_progress_counter)++;
-	WARN_ON(!(__get_cpu_var(dynticks_progress_counter) & 0x1));
+	WARN_ON_SECS(!(__get_cpu_var(dynticks_progress_counter) & 0x1), 10);
 }
 
 #else /* CONFIG_NO_HZ */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ