Re: timer_bh behaviour incorrect for 2.2.13?

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Thu, 9 Dec 1999 17:29:28 +0100 (CET)


On Thu, 9 Dec 1999, William Montgomery wrote:

> Many hours grepping and tracing kernel code has not revealed
> the cause to me. Any ideas?

there is one race here that is subtle: if a bottom-half is marked _while_
do_bottom_half is executing, then do_bottom_half might not notice this,
and we miss the event.

could you try making run_bottom_halves do something like this:

while ((active = get_active_bhs()) {
clear_active_bhs(active);
...
}

does this solve your problem?

-- mingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/