]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - kernel/fork.c
time, signal: Protect resource use statistics with seqlock
[mirror_ubuntu-zesty-kernel.git] / kernel / fork.c
index 0cf9cdb6e4919f254b32d04f6fdeb4943143a8d3..9387ae8ab048114fda9fb505dbbf97fea1312ed9 100644 (file)
@@ -1068,6 +1068,7 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
        sig->curr_target = tsk;
        init_sigpending(&sig->shared_pending);
        INIT_LIST_HEAD(&sig->posix_timers);
+       seqlock_init(&sig->stats_lock);
 
        hrtimer_init(&sig->real_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
        sig->real_timer.function = it_real_fn;