kernel/hung_task.c: change hung_task.c to use for_each_process_thread()
authorAaron Tomlin <[email protected]>
Wed, 15 Apr 2015 23:16:47 +0000 (16:16 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:22 +0000 (16:35 -0700)
commit972fae6993cbbb934345011664dc703c0891dda3
tree2e86c98a7c9a2cbf1a2992235b5e01b18157bc25
parent96831c0a6738f88f89e7012f4df0a747514af0a0
kernel/hung_task.c: change hung_task.c to use for_each_process_thread()

In check_hung_uninterruptible_tasks() avoid the use of deprecated
while_each_thread().

The "max_count" logic will prevent a livelock - see commit 0c740d0a
("introduce for_each_thread() to replace the buggy while_each_thread()").
Having said this let's use for_each_process_thread().

Signed-off-by: Aaron Tomlin <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Dave Wysochanski <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/hung_task.c