Re: 2.1.112 SMP No-go

Linus Torvalds (torvalds@transmeta.com)
29 Jul 1998 05:41:08 GMT


In article <Pine.LNX.3.96.980728215320.788A-100000@air.steve.net>,
Steven N. Hirsch <shirsch@adelphia.net> wrote:
>
>Kernel 2.1.112 hangs at the point where init is normally started. This is
>on a dual PentiumPro box which has worked properly through 2.1.112-pre1
>(didn't try pre-2). Motherboard is an FIC PO-6200 w/ Intel 450GX "Orion"
>chipset.

This is a total brain-fart on my part. Look into the <linux/smp_lock.h>
file, and you'll find an inline function for "lock_kernel()". In that
function, change the "if (lock_depth)" statement to a "if (!lock_depth)"
(ie just add the "!" character to reverse the test). Suddenly
everything works.

This silly thing was that I had fairly extensively tested the new lock
code yesterday with all kinds of extra sanity tests, and then when I
released 2.1.112 I removed the sanity tests and cleaned up the header
file a bit, and the "!" disappeared somewhen during that syntactic
cleanup.

Linus

-
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.altern.org/andrebalsa/doc/lkml-faq.html