Date: Tue, 26 Nov 2002 15:42:14 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Nate Lawson <nate@root.org> Cc: Julian Elischer <julian@elischer.org>, current@FreeBSD.ORG Subject: [PATCH] Searching for users of netncp and nwfs to help debug 5.0 problems Message-ID: <3DE406D6.B74F8FBC@mindspring.com> References: <Pine.BSF.4.21.0211261527290.87003-100000@root.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Nate Lawson wrote:
> > It's not so much that I volunteered as I said that I'd help with
> > thread/proc issues..
> > The trouble was that there are places where it used a proc in the old
> > code, but in some cases it needs to be a proc, and in other cases it now
> > needs to be a thread. But all they stored was the proc. Also, from
> > my memories of the code you needed to understand the protocol to know
> > which needed to be which, and I don't know that protocol.
> >
> > In addition whoever does it needs to remember that any structure that
> > stores a thread poitner is probably in error, as threads
> > are transient items and any stored thread pointer is probably a wild
> > pointer within a few milliseconds of being stored. :-)
>
> I'll take a whack at it and send it out by tomorrow, working or not.
Don't bother. 8-).
The attached patch makes it compile, and takes a shot at doing the
right thing.
The threasd stuff is problematic; it's useful only for a blocking
context. The process stuff is there to identify the connection,
actually, which can mean huge latencies (hence the caching of
procp).
It helps to know that the protocol is exclusively request/response
per session, the current code handles only a single session per
process (not one per thread), and that lock requests are answered
bith synchronously and asynchronously (request/response, then async
message on timeout or success).
-- Terry
[-- Attachment #2 --]
= smbfs_thr.diff =kWƶ_1RD9'^ƴҒm $ECmo{^HqN [g.ܑGVc18]ߋ
ێAqç87E`Em};\/Fx(_0ÃKzAHkwNUCG*+dZ:5SmVxTjUD":ӑr^N^JL?2ϡ>#6F0bPLgp0YuES϶oN4aThw(#g
TZ.b,fBۡgWm嶺 UA~#q^0d,ara5$:F..xsѻWAIt|>~sQVʓ1~e|UEiR0L%F}:,"T$NTJq/GܡaH FyHbbXF1ݏ痷7?wg06uM+qw/=RI܃28YR4cvyGR2+Q)Ƙd>@`zxh8
ˍ'V`FV˨7;\H7+Ŗyn0F+;j%UF5PFWF| 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