Reboot on blocked task. I.E. Hanging after "INFO: task blahblah:1234 blocked for more than 120 seconds."

home | blog | Teh Internet | guest blog |rants | political | projects | Gwen and Liam | Citadel patched | Tools | TMBG

Nice write up here: line

Summary (in case that link goes away in future):
Set items in sysctl.conf if your badly written code hangs and
eventually panics the kernel:
# Reboot X seconds after panic
kernel.panic = X

# Panic if a hung task was found
kernel.hung_task_panic = 1

# Setup timeout for hung task to XYZ seconds
kernel.hung_task_timeout_secs = XYZ