On Tue, May 06, 2008 at 10:21:53AM -0700, Andrew Morton wrote:
Not yet. We don't even know it's the BKL. It's just my best guess.
We're waiting for the original reporter to run some tests Ingo pointed
him at.
Correct.
We talked about this ... the BKL actually requires that you be able to
acquire it with interrupts disabled. Maybe we should make lock_kernel
do this:
if (likely(!depth)) {
unsigned long flags;
local_save_flags(flags);
down();
local_irq_restore(flags);
}
But tweaking down() is not worth it -- we should be eliminating users of
both the BKL and semaphores instead.
That's a question for someone who knows x86 assembler, I think.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--