Messages in this thread | | | Date | Wed, 15 Jan 2014 18:23:32 -0800 | From | "Paul E. McKenney" <> | Subject | Re: [PATCH tip/core/timers 3/4] timers: Reduce future __run_timers() latency for newly emptied list |
| |
On Wed, Jan 15, 2014 at 06:08:35PM +0100, Oleg Nesterov wrote: > On 01/14, Paul E. McKenney wrote: > > > > @@ -700,6 +700,7 @@ static int detach_if_pending(struct timer_list *timer, struct tvec_base *base, > > base->next_timer = base->timer_jiffies; > > } > > base->all_timers--; > > + (void)catchup_timer_jiffies(base); > > Agreed, but I think that detach_expired_timer() should do the same, > this can stop main loop in __run_timers().
Good point, added to detach_expired_timer().
Thanx, Paul
| |