From owner-freebsd-arch Fri Jan 3 10:20:17 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D96937B401; Fri, 3 Jan 2003 10:20:16 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00D6943E4A; Fri, 3 Jan 2003 10:20:16 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C3A98AE162; Fri, 3 Jan 2003 10:20:15 -0800 (PST) Date: Fri, 3 Jan 2003 10:20:15 -0800 From: Alfred Perlstein To: Matthew Dillon Cc: arch@FreeBSD.ORG, smp@FreeBSD.ORG, jhb@FreeBSD.ORG, jake@FreeBSD.ORG, tanimura@FreeBSD.ORG, alc@FreeBSD.ORG Subject: Re: Need help fixing lock ordering with filedesc, proc and pipe. Message-ID: <20030103182015.GB33821@elvis.mu.org> References: <20030103030805.GS26140@elvis.mu.org> <200301031805.h03I5Gt8064163@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301031805.h03I5Gt8064163@apollo.backplane.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Matthew Dillon [030103 10:05] wrote: > Hmm. There seem to be multiple issues here but would defering the > psigio also be a workable solution? That is, simply add a flag to > the filedesc and return and the caller (or his caller) is responsible > for checking the flag and calling psigio in a more controlled situation. > This way sigio can be initiated deep in the code without any worries. No. Not every object has a filedesc in front of it. Think of a kernel subsystem that allocates a socket directly via socreate. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message