]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/hung_task.c
Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[mirror_ubuntu-bionic-kernel.git] / kernel / hung_task.c
index 06db12434d727c65c48cb96126a1be77992e15c0..e0f90c2b57aa831ac978f70e5730830f52bcd5c7 100644 (file)
@@ -169,7 +169,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout)
                return;
 
        rcu_read_lock();
-       do_each_thread(g, t) {
+       for_each_process_thread(g, t) {
                if (!max_count--)
                        goto unlock;
                if (!--batch_count) {
@@ -180,7 +180,7 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout)
                /* use "==" to skip the TASK_KILLABLE tasks waiting on NFS */
                if (t->state == TASK_UNINTERRUPTIBLE)
                        check_hung_task(t, timeout);
-       } while_each_thread(g, t);
+       }
  unlock:
        rcu_read_unlock();
 }