[PATCH] Update cfq io scheduler to time sliced design
[pandora-kernel.git] / kernel / fork.c
index 2c78068..cdef6ce 100644 (file)
@@ -1090,6 +1090,11 @@ static task_t *copy_process(unsigned long clone_flags,
                spin_unlock(&current->sighand->siglock);
        }
 
+       /*
+        * inherit ioprio
+        */
+       p->ioprio = current->ioprio;
+
        SET_LINKS(p);
        if (unlikely(p->ptrace & PT_PTRACED))
                __ptrace_link(p, current->parent);