Re: [patch] sched: fix scheduling latencies for !PREEMPT kernels

Andrea Arcangeli
2004-09-14T19:28:58Z

Hi Robert,

On Tue, Sep 14, 2004 at 03:02:49PM -0400, Robert Love wrote:
> - you can safely call schedule() while holding it
> - you can grab it recursively
> - you cannot use it in interrupt handlers

the latter won't make it harder to get rid of at least ;)

>
> Getting rid of these, or at least better delineating them, will move the
> BKL closer to being just a very granular lock.
>
> cond_resched_bkl() is a step toward that.

yes, I don't think it will make thing worse in respect of dropping the
bkl, if something it should help.

probably the bkl is still there because removing it won't bring much
further value to the kernel at runtime, it'd probably only make the
kernel a bit cleaner and simpler.