From: Rik van Riel Date: Sat, 17 May 2014 13:19:25 +0000 (+1000) Subject: sysrq,rcu: suppress RCU stall warnings while sysrq runs X-Git-Tag: next-20140519~3^2~34 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78c7316542454a271612ae569ecd685ca3b832fe;p=karo-tx-linux.git sysrq,rcu: suppress RCU stall warnings while sysrq runs Some sysrq handlers can run for a long time, because they dump a lot of data onto a serial console. Having RCU stall warnings pop up in the middle of them only makes the problem worse. This patch temporarily disables RCU stall warnings while a sysrq request is handled. Signed-off-by: Rik van Riel Suggested-by: Paul McKenney Signed-off-by: Paul E. McKenney Cc: Madper Xie Cc: Randy Dunlap Cc: Richard Weinberger Signed-off-by: Andrew Morton --- diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index fc67a894a513..38d5f9ae1cc1 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -511,6 +512,7 @@ void __handle_sysrq(int key, bool check_mask) int orig_log_level; int i; + rcu_sysrq_start(); rcu_read_lock(); /* * Raise the apparent loglevel to maximum so that the sysrq header @@ -554,6 +556,7 @@ void __handle_sysrq(int key, bool check_mask) console_loglevel = orig_log_level; } rcu_read_unlock(); + rcu_sysrq_end(); } void handle_sysrq(int key)