Re: [RFC] [PATCH] Performance of del_timer_sync

From: Andrew Morton
Date: Tue May 11 2004 - 14:34:52 EST


Andrew Morton <akpm@xxxxxxxx> wrote:
>
> "Chen, Kenneth W" <kenneth.w.chen@xxxxxxxxx> wrote:
> >
> > > del_again:
> > > ret += del_timer(timer);
> > > + if (!ret)
> > > + return 0;
> > >
> > > for_each_cpu(i) {
> > > base = &per_cpu(tvec_bases, i);
> >
> >
> > Hehe ... , first thing we tried :-). But has problem that if timeout
> > function is running while del_timer_sync() is called, it returns
> > without waiting.
>
> eh? If del_timer() returns non-zero, that means that the timer was
> successfully deleted before it triggered.

s/non-zero/zero/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/