--- zzzz-none-000/linux-3.10.107/lib/is_single_threaded.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/lib/is_single_threaded.c 2021-02-04 17:41:59.000000000 +0000 @@ -36,8 +36,7 @@ if (unlikely(p == task->group_leader)) continue; - t = p; - do { + for_each_thread(p, t) { if (unlikely(t->mm == mm)) goto found; if (likely(t->mm)) @@ -48,7 +47,7 @@ * forked before exiting. */ smp_rmb(); - } while_each_thread(p, t); + } } ret = true; found: