OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] a couple of missed do_each_thread
[PATCH] a couple of missed do_each_thread [message #31028] Sat, 14 June 2008 20:06
Marty Pauley is currently offline  Marty Pauley
Messages: 1
Registered: June 2008
Junior Member
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
 
Read Message
Previous Topic: Re: [lxc-dev] [BUG][cryo]: underflow in semundo_release() ?
Next Topic: mini-summit agenda
Goto Forum:
  


Current Time: Sun Sep 01 01:20:11 GMT 2024

Total time taken to generate the page: 0.05669 seconds