[Devel] [PATCH] a couple of missed do_each_thread

Marty Pauley marty.pauley at gmail.com
Sat Jun 14 13:06:02 PDT 2008


Hello

I found a couple of do_each_thread macros that were not updated to
do_each_thread_all:

diff --git a/kernel/exit.c b/kernel/exit.c
index adccd59..40ef0ab 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -630,10 +630,10 @@ retry:
         * Search through everything else. We should not get
         * here often
         */
-       do_each_thread(g, c) {
+       do_each_thread_all(g, c) {
                if (c->mm == mm)
                        goto assign_new_owner;
-       } while_each_thread(g, c);
+       } while_each_thread_all(g, c);

        read_unlock(&tasklist_lock);
        return;
diff --git a/kernel/sched.c b/kernel/sched.c
index 53cf8eb..b3579e4 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8768,10 +8768,10 @@ static int __rt_schedulable(struct task_group
*tg, u64 period, u64 runtime)
 static inline int tg_has_rt_tasks(struct task_group *tg)
 {
        struct task_struct *g, *p;
-       do_each_thread(g, p) {
+       do_each_thread_all(g, p) {
                if (rt_task(p) && rt_rq_of_se(&p->rt)->tg == tg)
                        return 1;
-       } while_each_thread(g, p);
+       } while_each_thread_all(g, p);
        return 0;
 }


-- 
Marty




More information about the Devel mailing list