atom feed6 messages in org.freebsd.freebsd-smpRe: NETGRAPH broken with witness
FromSent OnAttachments
Kris KennawayFeb 22, 2001 11:11 pm 
Julian ElischerFeb 23, 2001 1:57 am 
Kris KennawayFeb 23, 2001 2:08 am 
Julian ElischerFeb 23, 2001 2:46 am 
Chuck PatersonFeb 23, 2001 6:53 am 
John BaldwinFeb 23, 2001 10:59 am 
Subject:Re: NETGRAPH broken with witness
From:John Baldwin (jh@FreeBSD.ORG)
Date:Feb 23, 2001 10:59:52 am
List:org.freebsd.freebsd-smp

On 23-Feb-01 Julian Elischer wrote:

On Fri, Feb 23, 2001 at 01:57:36AM -0800, Julian Elischer wrote:

Apparently this was never tested: early in the boot phase I get the following panic:

panic: spin lock netgraph worklist mutex not in order list

and indeed the witness code appears to have no knowledge of the netgraph spinlocks.

so how is it supposed to know?

From what I can gather, you add the locking hierarchy to be enforced to spin_order_list in kern.mutex.c

hmm tricky.. I thought initiating the damned thing would insert it.

For sleep mutexes it is automatic, yes. Spin mutexes are intended to only be used in very low level code and thus only in places where the order can be easily laid out.

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message