Detect Hung Tasks

modulename: hung_task.ko


Linux Kernel Configuration
└─>Kernel hacking
└─>Debug Oops, Lockups and Hangs
└─>Detect Hung Tasks
In linux kernel since version 2.6.30 (release Date: 2009-06-09)  
Say Y here to enable the kernel to detect "hung tasks",
which are bugs that cause the task to be stuck in
uninterruptible "D" state indefinitely.

When a hung task is detected, the kernel will print the
current stack trace (which you should report), but the
task will stay in uninterruptible state. If lockdep is
enabled then all held locks will also be reported. This
feature has negligible overhead.

source code: