Re: + getrusage-fill-ru_inblock-and-ru_oublock-fields-if-possible.patch added to -mm tree

2007-03-16 Thread Oleg Nesterov
On 03/16, Eric Dumazet wrote: > > On Friday 16 March 2007 18:10, Oleg Nesterov wrote: > > Eric Dumazet wrote: > > > @@ -2021,6 +2022,8 @@ static void k_getrusage(struct task_stru > > > r->ru_nivcsw = p->signal->cnivcsw; > > > r->ru_minflt = p->signal->cmin_flt; >

Re: + getrusage-fill-ru_inblock-and-ru_oublock-fields-if-possible.patch added to -mm tree

2007-03-16 Thread Eric Dumazet
On Friday 16 March 2007 18:23, Eric Dumazet wrote: > > Very good point, you found a bug in k_getrusage(). > > I just followed the existing logic, but it seems this logic is bad. > > So not only ru_inblock/ru_oublock are multiplied by 3 : others fields as > well are wrong. > > Also the definition o

Re: + getrusage-fill-ru_inblock-and-ru_oublock-fields-if-possible.patch added to -mm tree

2007-03-16 Thread Eric Dumazet
On Friday 16 March 2007 18:10, Oleg Nesterov wrote: > Eric Dumazet wrote: > > @@ -2021,6 +2022,8 @@ static void k_getrusage(struct task_stru > > r->ru_nivcsw = p->signal->cnivcsw; > > r->ru_minflt = p->signal->cmin_flt; > > r->ru_majflt =

Re: + getrusage-fill-ru_inblock-and-ru_oublock-fields-if-possible.patch added to -mm tree

2007-03-16 Thread Oleg Nesterov
Eric Dumazet wrote: > > @@ -2021,6 +2022,8 @@ static void k_getrusage(struct task_stru > r->ru_nivcsw = p->signal->cnivcsw; > r->ru_minflt = p->signal->cmin_flt; > r->ru_majflt = p->signal->cmaj_flt; > + r->ru_inb