Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2005 13:04:21 -0400 (EDT)
From:      "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
To:        Antoine Brodin <antoine.brodin@laposte.net>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/share/man/man4 unix.4 src/sys/sys socket.h un.h unpcb.h src/sys/kern uipc_usrreq.c
Message-ID:  <20050413124956.M3762@sasami.jurai.net>
In-Reply-To: <20050413184246.19212b84.antoine.brodin@laposte.net>
References:  <200504130001.j3D01kuD081602@repoman.freebsd.org> <20050413184246.19212b84.antoine.brodin@laposte.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Apr 2005, Antoine Brodin wrote:
> I'm not sure it's safe to sooptcopyout/sooptcopyin while holding the
> unp mutex in uipc_ctloutput.  It can fault.

I was concerned about this but saw that other code holds locks across 
sooptcopy*() calls.

If there is a deadlock problem it may be time to add a per unpcb lock.

-- 
10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050413124956.M3762>