Messages in this thread | | | Date | Tue, 11 May 2004 12:30:58 -0700 | From | Andrew Morton <> | Subject | Re: [RFC] [PATCH] Performance of del_timer_sync |
| |
Andrew Morton <akpm@osdl.org> wrote: > > "Chen, Kenneth W" <kenneth.w.chen@intel.com> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |