From owner-freebsd-current Tue Nov 26 22:25:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B4B037B401 for ; Tue, 26 Nov 2002 22:25:13 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C88043E9C for ; Tue, 26 Nov 2002 22:25:12 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <2002112706251100200sui6ne>; Wed, 27 Nov 2002 06:25:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id WAA57199; Tue, 26 Nov 2002 22:21:52 -0800 (PST) Date: Tue, 26 Nov 2002 22:21:51 -0800 (PST) From: Julian Elischer To: Terry Lambert Cc: Nate Lawson , current@FreeBSD.ORG Subject: Re: [PATCH] Searching for users of netncp and nwfs to help debug5.0 problems In-Reply-To: <3DE434BA.8FDF00D3@mindspring.com> 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 Tue, 26 Nov 2002, Terry Lambert wrote: > > > Uh, how exactly is that less obnoxious, given it's the same code > with a different name and an obnoxious inline instead of a macro? > 8-). it's shorter .. > > > > You can always get from a thread to a single process but the reverse > > always presents the question "which thread?". This question can only be > > answered with external information or if you know there is only one > > thread at this moment. > > The answer is that "the code doesn't care what thread"; it would > prefer to not have to think in terms of threads at all, but if > you want to force it to, then it's going to think in terms of > "blocking contexts for the benefit of FreeBSD code it calls", > and nothing else. Hense the confusion as to whether to use a thread or a proc.. > > Did you want me to update the patch to use your FIRST_THREAD_IN_PROC > macro and resend it? you could but the fact that FIRST_THREAD_IN_PROC() is used indicates that the whole thing is broken anyway. Your edits are mostly mechanical and don't actually solve the problem. To do that you probably need to actually rewrite some of it I think. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message