]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/sched.h
rseq/cleanup: Do not abort rseq c.s. in child on fork()
[linux.git] / include / linux / sched.h
index 87bf02d93a279a9b98df452c7ad78a0b54adc1db..c1882643d455dd6b0c24850f9bccf6a29f334187 100644 (file)
@@ -1831,9 +1831,7 @@ static inline void rseq_migrate(struct task_struct *t)
 
 /*
  * If parent process has a registered restartable sequences area, the
- * child inherits. Only applies when forking a process, not a thread. In
- * case a parent fork() in the middle of a restartable sequence, set the
- * resume notifier to force the child to retry.
+ * child inherits. Only applies when forking a process, not a thread.
  */
 static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
 {
@@ -1847,7 +1845,6 @@ static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
                t->rseq_len = current->rseq_len;
                t->rseq_sig = current->rseq_sig;
                t->rseq_event_mask = current->rseq_event_mask;
-               rseq_preempt(t);
        }
 }