aboutsummaryrefslogtreecommitdiff
path: root/include/linux/parser.h
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2016-03-22 14:24:39 -0700
committerLinus Torvalds <[email protected]>2016-03-22 15:36:02 -0700
commitb4aa14a63cb3194d8eab355fcee194838ab09121 (patch)
tree84e104cac5b6ed9a629ea5c5d3e9c56e2c332db4 /include/linux/parser.h
parent3f2b1a04f44933f2d6fe0a9bf9a9c1c452df23f7 (diff)
kernel/hung_task.c: use timeout diff when timeout is updated
When new timeout is written to /proc/sys/kernel/hung_task_timeout_secs, khungtaskd is interrupted and again sleeps for full timeout duration. This means that hang task will not be checked if new timeout is written periodically within old timeout duration and/or checking of hang task will be delayed for up to previous timeout duration. Fix this by remembering last time khungtaskd checked hang task. This change will allow other watchdog tasks (if any) to share khungtaskd by sleeping for minimal timeout diff of all watchdog tasks. Doing more watchdog tasks from khungtaskd will reduce the possibility of printk() collisions by multiple watchdog threads. Signed-off-by: Tetsuo Handa <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Aaron Tomlin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/parser.h')
0 files changed, 0 insertions, 0 deletions