From owner-freebsd-current Mon Mar 4 11:20:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 3F84F37B402; Mon, 4 Mar 2002 11:20:10 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020304192009.QCLZ1147.rwcrmhc52.attbi.com@InterJet.elischer.org>; Mon, 4 Mar 2002 19:20:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA26906; Mon, 4 Mar 2002 11:18:08 -0800 (PST) Date: Mon, 4 Mar 2002 11:18:08 -0800 (PST) From: Julian Elischer To: Maksim Yevmenkin Cc: freebsd-current@FreeBSD.ORG, archie@FreeBSD.ORG Subject: Re: Netgraph, device drivers and mutexes In-Reply-To: <3C83BE7B.24087755@digisle.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 4 Mar 2002, Maksim Yevmenkin wrote: > Julian, > > thank you very much for a such detailed answer :) > > [...] > > > I hope that this helps you! > > yes it did help :) i changed my code and it seems to work just fine. > i wish i had SMP laptop to test it :) Well it aint exactly SMP safe YET, until I make those changes through teh REST of the system. There are still direct timeout() calls in several modules that I need to change to follow my own suggestions and there are many nodes that need to be changed to gain a lock when they first try insert data into the graph. e.g. ng_tty, ng_ether, (actually those two always do queueing but there are others..) I need to sit down with Archie and go through the nodes with an eye to locking. > > thanks, > max > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message