Re: [PATCH 2/3] time,signal: protect resource use statistics with seqlock

2014-08-16 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2014 10:11 AM, Oleg Nesterov wrote: >> +/* + * If a writer is currently active, seq will be >> odd, >> and + * read_seqbegin_or_lock will take the lock. + >> */ + >> nextseq = raw_read_seqco

Re: [PATCH 2/3] time,signal: protect resource use statistics with seqlock

2014-08-16 Thread Oleg Nesterov
On 08/15, r...@redhat.com wrote: > > --- a/kernel/sched/cputime.c > +++ b/kernel/sched/cputime.c > @@ -288,18 +288,31 @@ void thread_group_cputime(struct task_struct *tsk, > struct task_cputime *times) > struct signal_struct *sig = tsk->signal; > cputime_t utime, stime; > struct