mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] hung_task-decrement-sysctl_hung_task_warnings-only-if-it-is-positive.patch removed from -mm tree
@ 2016-12-14 19:27 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-12-14 19:27 UTC (permalink / raw)
  To: penguin-kernel, jsiddle, mm-commits


The patch titled
     Subject: hung_task: decrement sysctl_hung_task_warnings only if it is positive
has been removed from the -mm tree.  Its filename was
     hung_task-decrement-sysctl_hung_task_warnings-only-if-it-is-positive.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Subject: hung_task: decrement sysctl_hung_task_warnings only if it is positive

Since sysctl_hung_task_warnings == -1 is allowed (infinite warnings),
48a6d64edadbd40f ("hung_task: allow hung_task_panic when
hung_task_warnings is 0") should decrement it only when it is not -1.

This prevents the kernel from ceasing warnings after the first 4294967295 ;)

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: John Siddle <jsiddle@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/hung_task.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN kernel/hung_task.c~hung_task-decrement-sysctl_hung_task_warnings-only-if-it-is-positive kernel/hung_task.c
--- a/kernel/hung_task.c~hung_task-decrement-sysctl_hung_task_warnings-only-if-it-is-positive
+++ a/kernel/hung_task.c
@@ -106,7 +106,8 @@ static void check_hung_task(struct task_
 	 * complain:
 	 */
 	if (sysctl_hung_task_warnings) {
-		sysctl_hung_task_warnings--;
+		if (sysctl_hung_task_warnings > 0)
+			sysctl_hung_task_warnings--;
 		pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
 			t->comm, t->pid, timeout);
 		pr_err("      %s %s %.*s\n",
_

Patches currently in -mm which might be from penguin-kernel@I-love.SAKURA.ne.jp are

sysctl-add-kern_cont-to-deprecated_sysctl_warning.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-14 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 19:27 [merged] hung_task-decrement-sysctl_hung_task_warnings-only-if-it-is-positive.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).