Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2003 12:36:28 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        John Baldwin <jhb@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_mutex.c
Message-ID:  <Pine.BSF.4.21.0303051235460.82966-100000@root.org>
In-Reply-To: <Pine.BSF.4.21.0303051209170.61509-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 5 Mar 2003, Julian Elischer wrote:
> On Wed, 5 Mar 2003, Nate Lawson wrote:
> > My issue is with contention for a named endpoint.  If one thread enables
> > traffic to an endpoint and then disables it, it still has the endpoint
> > allocated.  If another thread tries to enable the same endpoint, it needs
> > to lock the OTHER endpoint, check if it's disabled (freeing it if it is),
> > and then unlock it.  My current locking approach is to lock my own softc,
> > lock the driver global mtx, and then lock the OTHER thread's softc before
> > checking if it is enabled.
> 
> This is very similar to the case I was trying to solve..
> I was trying to create and destroy netgraph links.
> from different ends of the connection..
> I ended up taking a completely different approach. :-)

What was the new approach?

-Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0303051235460.82966-100000>