chai wen b1a8de1f53 softlockup: make detector be aware of task switch of processes hogging cpu
For now, soft lockup detector warns once for each case of process
softlockup.  But the thread 'watchdog/n' may not always get the cpu at the
time slot between the task switch of two processes hogging that cpu to
reset soft_watchdog_warn.

An example would be two processes hogging the cpu.  Process A causes the
softlockup warning and is killed manually by a user.  Process B
immediately becomes the new process hogging the cpu preventing the
softlockup code from resetting the soft_watchdog_warn variable.

This case is a false negative of "warn only once for a process", as there
may be a different process that is going to hog the cpu.  Resolve this by
saving/checking the task pointer of the hogging process and use that to
reset soft_watchdog_warn too.

[dzickus@redhat.com: update comment]
Signed-off-by: chai wen <chaiw.fnst@cn.fujitsu.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-10-09 22:25:48 -04:00
..
2014-06-12 16:18:45 +02:00
2014-10-02 16:28:44 -07:00
2014-10-08 12:49:23 -04:00
2014-08-08 15:57:18 -07:00
2014-09-18 12:32:52 -04:00
2014-07-05 11:17:45 +02:00
2014-10-02 16:28:44 -07:00
2014-09-10 15:42:12 -07:00
2014-08-08 15:57:32 -07:00
2014-10-08 05:34:24 -04:00
2014-08-08 15:57:24 -07:00
2014-10-07 20:39:25 -04:00
2013-09-11 15:58:27 -07:00
2014-08-08 15:57:22 -07:00