Re: BH's -> tasklets

From: kuznet@ms2.inr.ac.ru
Date: Sun Mar 05 2000 - 10:21:15 EST


Hello!

> 1. Drivers should start using tasklets instead of bh's, right?

Yes, they are SMP friendly unlike BHs at least.

> one should use:
>
> tasklet_schedule(&tasklet);
>
> or
>
> tasklet_hi_schedule(&tasklet);

It is not so essential. Softirqs have no priority,
so that these two statements are essentially equivalent,
when schedule is initated from an hard irq or from process context.

But! There exist side effect when schedule is made from another softirq.
(f.e. from timer). Order becomes important in this case: essentially,
tasklet_schedule() and tasklet_hi_schedule() form two "pipes":
events scheduled from one pipe to another tend to be scheduled more
reactively. F.e. events rescheduled from timer should use tasklet_schedule().

Alexey

-
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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:18 EST