diff options
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 87bf02d93a27..c1882643d455 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1831,9 +1831,7 @@ static inline void rseq_migrate(struct task_struct *t) | |||
1831 | 1831 | ||
1832 | /* | 1832 | /* |
1833 | * If parent process has a registered restartable sequences area, the | 1833 | * If parent process has a registered restartable sequences area, the |
1834 | * child inherits. Only applies when forking a process, not a thread. In | 1834 | * child inherits. Only applies when forking a process, not a thread. |
1835 | * case a parent fork() in the middle of a restartable sequence, set the | ||
1836 | * resume notifier to force the child to retry. | ||
1837 | */ | 1835 | */ |
1838 | static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) | 1836 | static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) |
1839 | { | 1837 | { |
@@ -1847,7 +1845,6 @@ static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) | |||
1847 | t->rseq_len = current->rseq_len; | 1845 | t->rseq_len = current->rseq_len; |
1848 | t->rseq_sig = current->rseq_sig; | 1846 | t->rseq_sig = current->rseq_sig; |
1849 | t->rseq_event_mask = current->rseq_event_mask; | 1847 | t->rseq_event_mask = current->rseq_event_mask; |
1850 | rseq_preempt(t); | ||
1851 | } | 1848 | } |
1852 | } | 1849 | } |
1853 | 1850 | ||