diff options
| -rw-r--r-- | kernel/time/posix-cpu-timers.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c index 1370f067fb51..d2a1e6dd0291 100644 --- a/kernel/time/posix-cpu-timers.c +++ b/kernel/time/posix-cpu-timers.c | |||
| @@ -825,8 +825,10 @@ static void check_thread_timers(struct task_struct *tsk, | |||
| 825 | * At the hard limit, we just die. | 825 | * At the hard limit, we just die. |
| 826 | * No need to calculate anything else now. | 826 | * No need to calculate anything else now. |
| 827 | */ | 827 | */ |
| 828 | pr_info("CPU Watchdog Timeout (hard): %s[%d]\n", | 828 | if (print_fatal_signals) { |
| 829 | tsk->comm, task_pid_nr(tsk)); | 829 | pr_info("CPU Watchdog Timeout (hard): %s[%d]\n", |
| 830 | tsk->comm, task_pid_nr(tsk)); | ||
| 831 | } | ||
| 830 | __group_send_sig_info(SIGKILL, SEND_SIG_PRIV, tsk); | 832 | __group_send_sig_info(SIGKILL, SEND_SIG_PRIV, tsk); |
| 831 | return; | 833 | return; |
| 832 | } | 834 | } |
| @@ -838,8 +840,10 @@ static void check_thread_timers(struct task_struct *tsk, | |||
| 838 | soft += USEC_PER_SEC; | 840 | soft += USEC_PER_SEC; |
| 839 | sig->rlim[RLIMIT_RTTIME].rlim_cur = soft; | 841 | sig->rlim[RLIMIT_RTTIME].rlim_cur = soft; |
| 840 | } | 842 | } |
| 841 | pr_info("RT Watchdog Timeout (soft): %s[%d]\n", | 843 | if (print_fatal_signals) { |
| 842 | tsk->comm, task_pid_nr(tsk)); | 844 | pr_info("RT Watchdog Timeout (soft): %s[%d]\n", |
| 845 | tsk->comm, task_pid_nr(tsk)); | ||
| 846 | } | ||
| 843 | __group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk); | 847 | __group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk); |
| 844 | } | 848 | } |
| 845 | } | 849 | } |
| @@ -936,8 +940,10 @@ static void check_process_timers(struct task_struct *tsk, | |||
| 936 | * At the hard limit, we just die. | 940 | * At the hard limit, we just die. |
| 937 | * No need to calculate anything else now. | 941 | * No need to calculate anything else now. |
| 938 | */ | 942 | */ |
| 939 | pr_info("RT Watchdog Timeout (hard): %s[%d]\n", | 943 | if (print_fatal_signals) { |
| 940 | tsk->comm, task_pid_nr(tsk)); | 944 | pr_info("RT Watchdog Timeout (hard): %s[%d]\n", |
| 945 | tsk->comm, task_pid_nr(tsk)); | ||
| 946 | } | ||
| 941 | __group_send_sig_info(SIGKILL, SEND_SIG_PRIV, tsk); | 947 | __group_send_sig_info(SIGKILL, SEND_SIG_PRIV, tsk); |
| 942 | return; | 948 | return; |
| 943 | } | 949 | } |
| @@ -945,8 +951,10 @@ static void check_process_timers(struct task_struct *tsk, | |||
| 945 | /* | 951 | /* |
| 946 | * At the soft limit, send a SIGXCPU every second. | 952 | * At the soft limit, send a SIGXCPU every second. |
| 947 | */ | 953 | */ |
| 948 | pr_info("CPU Watchdog Timeout (soft): %s[%d]\n", | 954 | if (print_fatal_signals) { |
| 949 | tsk->comm, task_pid_nr(tsk)); | 955 | pr_info("CPU Watchdog Timeout (soft): %s[%d]\n", |
| 956 | tsk->comm, task_pid_nr(tsk)); | ||
| 957 | } | ||
| 950 | __group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk); | 958 | __group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk); |
| 951 | if (soft < hard) { | 959 | if (soft < hard) { |
| 952 | soft++; | 960 | soft++; |
