]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kill PF_STARTING
authorOleg Nesterov <oleg@redhat.com>
Mon, 22 Aug 2011 13:02:47 +0000 (15:02 +0200)
committerOleg Nesterov <oleg@redhat.com>
Mon, 22 Aug 2011 13:24:01 +0000 (15:24 +0200)
Previously it was (ab)used by utrace. Then it was wrongly used by
the scheduler code.

Currently it is not used, kill it before it finds the new erroneous
user.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
include/linux/sched.h
kernel/fork.c

index 64bf566a75a70aba747fd2fb19a4eab3d125bca3..dcacb266494cb242b5bd254019d6155917e70ca9 100644 (file)
@@ -1756,7 +1756,6 @@ extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t *
 /*
  * Per process flags
  */
-#define PF_STARTING    0x00000002      /* being created */
 #define PF_EXITING     0x00000004      /* getting shut down */
 #define PF_EXITPIDONE  0x00000008      /* pi exit done on shut down */
 #define PF_VCPU                0x00000010      /* I'm a virtual CPU */
index 82418abe84adb07f3932545ceb9b79d1b4ce9a4d..8104ace81678ea6e4790e7365d2e75908a4139a4 100644 (file)
@@ -1026,7 +1026,6 @@ static void copy_flags(unsigned long clone_flags, struct task_struct *p)
 
        new_flags &= ~(PF_SUPERPRIV | PF_WQ_WORKER);
        new_flags |= PF_FORKNOEXEC;
-       new_flags |= PF_STARTING;
        p->flags = new_flags;
        clear_freeze_flag(p);
 }
@@ -1563,15 +1562,6 @@ long do_fork(unsigned long clone_flags,
                }
 
                audit_finish_fork(p);
-
-               /*
-                * We set PF_STARTING at creation in case tracing wants to
-                * use this to distinguish a fully live task from one that
-                * hasn't finished SIGSTOP raising yet.  Now we clear it
-                * and set the child going.
-                */
-               p->flags &= ~PF_STARTING;
-
                wake_up_new_task(p);
 
                /* forking complete and child started to run, tell ptracer */