Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2002 01:57:15 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Julian Elischer <julian@elischer.org>, Nate Lawson <nate@root.org>, current@FreeBSD.ORG
Subject:   Re: [PATCH] Searching for users of netncp and nwfs to help
Message-ID:  <3DE496FB.66A71BF3@mindspring.com>
References:  <200211270742.XAA57750@InterJet.elischer.org> <3DE495AD.6C73EF3D@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> The main problem here is that lockmgr() is being called to lock
> things that technically don't need to be locked, at all, really,
> to insure that operations are not attempted concurrently.  It's
> not really necessary: the server will refuse additional requests
> on a connection, when there is one request outstanding.

In case this wasn't clear to whoever was thinking of doing the
work: add a serialization barrier at the ncp_* layer.  You can
remove it later, without any other code being adversely affected,
if you add a connection pool later.

Note also that the credentials can be passed on the VC, if you
don't mind not running on NetWare prior to 3.1b.  I recommend
this, since it means connection, but not credential, sharing
between processes for threads in the work-to-do pool.

-- Terry

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE496FB.66A71BF3>