]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/hung_task.c: change hung_task.c to use for_each_process_thread()
authorAaron Tomlin <atomlin@redhat.com>
Tue, 7 Apr 2015 23:44:53 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:53 +0000 (09:44 +1000)
commitd11cd9cddba34a12ef3ad32c78f45ac0d9183d13
tree758d9e3238464c29e279ebc8b235aa34ecb56031
parent128e86cfd51590a001fcd385b691e115f6b155ed
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 <atomlin@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Dave Wysochanski <dwysocha@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/hung_task.c